mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en lineas presupuesto
This commit is contained in:
@ -186,7 +186,7 @@ class PresupuestoClienteService extends BaseService
|
||||
return $lineas_sobrecubierta;
|
||||
}
|
||||
|
||||
public static function obtenerGuardas($data)
|
||||
public static function obtenerGuardas($data, $return_raw=false)
|
||||
{
|
||||
|
||||
$uso = $data['uso'];
|
||||
@ -220,6 +220,14 @@ class PresupuestoClienteService extends BaseService
|
||||
}
|
||||
if (count($lineas_guardas) > 0) {
|
||||
|
||||
if($return_raw){
|
||||
$lineas_guardas = array_values(array_unique($lineas_guardas, SORT_REGULAR));
|
||||
|
||||
return[
|
||||
'guardas' => $lineas_guardas
|
||||
];
|
||||
}
|
||||
|
||||
usort(
|
||||
$lineas_guardas,
|
||||
function ($a, $b) {
|
||||
|
||||
Reference in New Issue
Block a user