listo para añadir tarifas

This commit is contained in:
2023-11-23 22:20:38 +01:00
parent ec2f217c79
commit f89dc2e566
2320 changed files with 124 additions and 15 deletions

11
ci4/app/Controllers/Test.php Normal file → Executable file
View File

@ -18,10 +18,19 @@ class Test extends BaseController
public function index()
{
echo '<pre>';
var_dump($this->get_tarifa_enc(1, 100, 300, 140, 205));
$model = model('App\Models\Configuracion\ConfiguracionSistemaModel');
var_dump($this->init_presupuesto_encuadernacion(4, 1, 300, 100, 150, 210, 30) );
//var_dump($this->get_tarifa_enc(1, 100, 300, 150, 210));
echo '</pre>';
}
public function init_presupuesto_encuadernacion($tipo_presupuesto, $solapas, $paginas, $tirada, $ancho, $alto, $POD){
$model = model('App\Models\Presupuestos\PresupuestoEncuadernacionesModel');
return $model->initPresupuesto($tipo_presupuesto, $solapas, $paginas, $tirada, $ancho, $alto, $POD);
}
public function get_tarifa_enc($tarifa_id, $paginas, $tirada, $ancho, $alto){
$model = model('App\Models\Tarifas\TarifaEncuadernacionModel');
return $model->getTarifaPresupuestoEncuadernacion($tarifa_id, $paginas, $tirada, $ancho, $alto);