arraglados algunos bugs

This commit is contained in:
jaimejimenezortega
2024-05-22 17:14:49 +02:00
parent 9a98ffd6e6
commit 9e0ff7501e
5 changed files with 904 additions and 6 deletions

View File

@ -956,7 +956,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
$coste = $tarifas_envio[0]->precio;
}
}
if (count($data) > 0) {
if (count($data) > 0 && count($tarifas_envio) > 0){
$data[0]->coste = $coste;
$data[0]->tipo = $entregaPieCalle ? 'palets' : 'cajas';
$data[0]->margen = $margen;