corregido direcciones borran precio

This commit is contained in:
2025-07-02 11:15:35 +02:00
parent e257a3516e
commit 61d8dca583
3 changed files with 14 additions and 2 deletions

View File

@ -376,6 +376,10 @@ class Direcciones {
}
}
this.#addTarjetaDireccion(this.divDirecciones, this.direcciones, divId, id, unidades, entregaPalets);
this.calcularPresupuesto = true;
this.divDirecciones.trigger('change');
} catch (e) {
console.error(e);
@ -578,6 +582,10 @@ class Direcciones {
this.sameAddPrincipalFP2.trigger('change');
}
}
this.calcularPresupuesto = true;
this.divDirecciones.trigger('change');
}
#deleteDireccionFP(event, num_ferroPrototipo = 1) {

View File

@ -851,7 +851,7 @@ class PresupuestoCliente {
self.direcciones.cargarDatos(response.data.direcciones, response.data.datosGenerales,
(response.data.direccionesFerroPrototipo && response.data.direccionesFerroPrototipo.length > 0) ?
response.data.direccionesFerroPrototipo : [] ,
response.data.direccionesFPChecks ? JSON.parse(response.data.direccionesFPChecks) : {}
response.data.direccionesFPChecks && response.data.direccionesFPChecks.length > 0 ? JSON.parse(response.data.direccionesFPChecks) : {}
);
try {