diff --git a/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php b/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php index 956bbe77..9e78b7a1 100755 --- a/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php +++ b/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php @@ -73,7 +73,7 @@ class PresupuestoEncuadernacionesModel extends \App\Models\BaseModel $result_array = []; foreach($tarifa_value as $tarifa_proveedor){ $precio_total = floatval(1.0* $tarifa_proveedor->precio_hora* $tiempo) * (1+$tarifa_value[0]->margen/100.0); - if (!$POD){ + if ($tirada>=$POD){ $precio_total += floatval($tarifa_proveedor->tarifa_importe_fijo); } @@ -265,7 +265,7 @@ class PresupuestoEncuadernacionesModel extends \App\Models\BaseModel $ret_array = []; foreach($tarifa_value as $tarifa_proveedor){ $precio_total = floatval(1.0* $tarifa_proveedor->precio_hora* $tiempo) * (1+$tarifa_value[0]->margen/100.0); - if (!$POD){ + if ($tirada>=$POD){ $precio_total += floatval($tarifa_proveedor->tarifa_importe_fijo); } diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js index beffb95d..fb486151 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js @@ -258,6 +258,7 @@ class PresupuestoCliente { default: break; } + $('html, body').animate({ scrollTop: 0 }, 'slow'); } @@ -534,6 +535,7 @@ class PresupuestoCliente { default: break; } + $('html, body').animate({ scrollTop: 0 }, 'slow'); } @@ -541,6 +543,7 @@ class PresupuestoCliente { if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) { this.validationStepper.previous(); } + $('html, body').animate({ scrollTop: 0 }, 'slow'); }