Merge branch 'fix/resumen_no_envio_base' into 'main'

cuando se añade más de una direccion y tiene el cliente marcado que no tenga...

See merge request jjimenez/safekat!794
This commit is contained in:
2025-05-06 12:00:33 +00:00

View File

@ -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)