mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
hecho el html de las lineas de presupuesto
This commit is contained in:
@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user