From 72a7010eeef01c25ed4fbc5eceb5c220afa3d23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 13 Nov 2024 18:03:13 +0100 Subject: [PATCH] corregido error en presupuestosencuadernaciones para saber si es pod --- .../Models/Presupuestos/PresupuestoEncuadernacionesModel.php | 4 ++-- .../js/safekat/pages/presupuestoCliente/presupuestoCliente.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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'); }