hecho el html de las lineas de presupuesto

This commit is contained in:
Jaime Jiménez Ortega
2023-11-01 19:17:04 +01:00
parent f905e017ac
commit d7574a0e2f
9 changed files with 997 additions and 109 deletions

View File

@ -4,6 +4,7 @@ namespace App\Controllers;
use App\Controllers\BaseController;
use App\Models\Configuracion\MaquinasTarifasImpresionModel;
use App\Models\Configuracion\PapelGenericoModel;
use App\Models\Configuracion\MaquinaModel;
use App\Services\PresupuestoService;
@ -16,7 +17,21 @@ class Test extends BaseController
public function index()
{
$this->testLineasCubierta();
$this->testLineasIntPlana();
}
public function getPapelesHQ(){
$model = model('App\Models\Configuracion\PapelGenericoModel');
$data = $model->getPapelForComparador('colorhq', false, false);
var_dump($data);
}
public function getGramaje(){
$model = new PapelGenericoModel();
$data = $model->getGramajeComparador("AHUESADO OFFSET", "bnhq" );
var_dump($data);
}
public function testGetPrecioPliegoRotativa()
@ -58,8 +73,8 @@ class Test extends BaseController
public static function testLineasIntPlana()
{
$uso = 'negro';
$tipo = 'color';
$uso = 'interior';
$tipo = 'colorhq';
$datosPedido = (object)array(
'paginas' => 200,
'tirada' => 500,
@ -73,7 +88,7 @@ class Test extends BaseController
$maquina_model = new \App\Models\Configuracion\MaquinaModel();
$opciones_papel = array(
'bn' => 1,
'color' => 1,
'cubierta' => 0,
'sobrecubierta' => 0,
'rotativa' => 0,
@ -88,7 +103,7 @@ class Test extends BaseController
echo '-------------------------------';
$maquinas = $maquina_model->getMaquinaImpresionForPresupuesto(
is_rotativa: $papel->rotativa,
tarifa_tipo: 'negro',
tarifa_tipo: 'colorhq',
tirada: $datosPedido->tirada + $datosPedido->merma,
papel_impresion_id: $papel->id,
);