corregidos los dos fallos

This commit is contained in:
2025-04-23 17:41:43 +02:00
parent 3779b3b8a0
commit e918b5f400
2 changed files with 7 additions and 2 deletions

View File

@ -11,13 +11,18 @@ class Resumen {
const self = this;
this.toastPresupuestoTotal = null
$(".update-totales").on("change", function () {
self.updateTotales(null, { updateLP: true, updateServicios: true, updateEnvio: true });
self.updateTotales({ updateLP: true, updateServicios: true, updateEnvio: true });
});
$(document).on('update-totales', async function () {
await self.updateTotales();
$(document).trigger('update-totales-completed');
});
$('#total_descuentoPercent').on('change', function () {
this.updateTotales({ updateLP: false, updateServicios: false, updateEnvio: false }, false);
}.bind(this));
$("#totalDespuesDecuento").on('change', this.updateToastSummary.bind(this))
}