lineas presupuesto actualizadas con tirada

This commit is contained in:
2025-01-08 17:34:29 +01:00
parent a88f3fb009
commit 642b445cd2
7 changed files with 106 additions and 35 deletions

View File

@ -53,6 +53,9 @@ class LineasPresupuesto {
}
});
// Evento para recalcular las lineas de presupuesto
$(document).on('update-lineas-presupuesto', this.updateLineasPresupuesto.bind(this));
$('.insertarLinea').on("click", this.#insertarLineaComparador.bind(this));
$('.paginas-lp').on('change', this.checkPaginasLineasPresupuesto.bind(this));
}
@ -354,6 +357,14 @@ class LineasPresupuesto {
}
updateLineasPresupuesto() {
$('#tableLineasPresupuesto tbody tr:visible ').each(function () {
$('#' + this.id + '_maquina').trigger('change');
})
}
cargarDatos(data) {
const self = this;
@ -1600,6 +1611,7 @@ class LineasPresupuesto {
}
#addEventosLineas(tipoLinea, isInkjet = false) {
const self = this;