mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglado el calculo del coste del envio para cuando hay más tiradas
This commit is contained in:
@ -104,6 +104,8 @@ class DatosGenerales {
|
||||
this.papelDiferente.on('change', this.#handlePapelDiferente.bind(this));
|
||||
|
||||
$('.tirada-presupuesto').on('change', () => {
|
||||
|
||||
self.validate(false);
|
||||
let tiradas = self.getTiradas();
|
||||
if (!Array.isArray(tiradas)) {
|
||||
tiradas = [tiradas];
|
||||
|
||||
@ -207,6 +207,12 @@ class PresupuestoCliente {
|
||||
|
||||
if (Object.values(datos_to_check).every(this.#isValidDataForm)) {
|
||||
|
||||
// buscar elementos dentro de #mainContainer que tengan la clase is-invalid
|
||||
const invalidElements = $('#mainContainer').find('.is-invalid');
|
||||
if(invalidElements.length > 0) {
|
||||
// si hay elementos inválidos, no se procede con el
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
||||
setTimeout(function () {
|
||||
|
||||
Reference in New Issue
Block a user