mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
cuando se añade más de una direccion y tiene el cliente marcado que no tenga envio base, se suman las dos direcciones al presupuesto
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user