hay que corregir el checkeo de lineas con las paginas

This commit is contained in:
jaimejimenezortega
2024-05-20 21:20:09 +02:00
parent 75df199c5d
commit 8b1114dc7f
10 changed files with 20960 additions and 44 deletions

View File

@ -1767,6 +1767,20 @@ class PresupuestoService extends BaseService
if(empty($linea))
continue;
if(!array_key_exists('tipo_linea', $linea['fields'])){
if($isColor){
if($isHq)
$linea['fields']['tipo_linea'] = 'lp_colorhq';
else
$linea['fields']['tipo_linea'] = 'lp_color';
}
else{
if($isHq)
$linea['fields']['tipo_linea'] = 'lp_bnhq';
else
$linea['fields']['tipo_linea'] = 'lp_bn';
}
}
array_push($lineas, $linea);
}
}