From 15227998aaff1d2d9ed7f532a4b8b1e7b6c64e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Tue, 6 May 2025 14:00:03 +0200 Subject: [PATCH] =?UTF-8?q?cuando=20se=20a=C3=B1ade=20m=C3=A1s=20de=20una?= =?UTF-8?q?=20direccion=20y=20tiene=20el=20cliente=20marcado=20que=20no=20?= =?UTF-8?q?tenga=20envio=20base,=20se=20suman=20las=20dos=20direcciones=20?= =?UTF-8?q?al=20presupuesto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/safekat/pages/presupuestoAdmin/sections/resumen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js index cf35b450..3999c4ce 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js @@ -290,7 +290,7 @@ class Resumen { if (typeof $('#tableOfDireccionesEnvio').DataTable() !== 'undefined' && $('#tableOfDireccionesEnvio').DataTable().rows().count() > 0) { $('#tableOfDireccionesEnvio').DataTable().rows().every(function (rowIdx, tableLoop, rowLoop) { // el primer envio es el base, y no se debe de cobrar - if (rowIdx != 0) { + if (rowIdx != 0 || (rowIdx == 0 && $('#noEnvioBase').val() == 1)) { let data = this.data() totalEnvios += parseFloat(data.precio)