solucionados bugs (pe, cuando es cubierta o sobrecubierta no se necesita color=1)

This commit is contained in:
Jaime Jiménez Ortega
2023-11-12 17:27:54 +01:00
parent dca61f9c63
commit 894c4b6cb9
9 changed files with 98 additions and 74 deletions

View File

@ -226,10 +226,6 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
$uso_tarifa = 'interior';
if($tipo == 'negro' || $tipo == 'negrohq')
$builder->where("t2.bn", 1);
else if ($tipo == 'color' || $tipo == 'colorhq')
$builder->where("t2.color", 1);
if ($uso == 'cubierta'){
$uso_tarifa = 'cubierta';
$builder->where("t2.cubierta", 1);
@ -238,6 +234,13 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
$uso_tarifa = 'sobrecubierta';
$builder->where("t2.sobrecubierta", 1);
}
else{
if($tipo == 'negro' || $tipo == 'negrohq')
$builder->where("t2.bn", 1);
else if ($tipo == 'color' || $tipo == 'colorhq')
$builder->where("t2.color", 1);
}
if($uso=='rotativa')
$builder->where("t2.rotativa", 1);
else