trabajando

This commit is contained in:
2025-04-04 09:21:36 +02:00
parent eae40ff4d8
commit a0cb703991
3 changed files with 32 additions and 12 deletions

View File

@ -83,10 +83,6 @@ class PresupuestoAdminEdit {
// Autonumeric
AutoNumeric.multiple('.autonumeric-currency', { decimalPlaces: 2, currencySymbol: '€', currencySymbolPlacement: 's', digitGroupSeparator: '.', decimalCharacter: ',' });
$('#total_aceptado_revisado').on('change', function () {
AutoNumeric.getAutoNumericElement(this).set(this.value);
});
const impresion_id = $('#tipo_impresion_id').val();
let tipoLibro = '';
if (impresion_id == 1 || impresion_id == 2) {
@ -124,6 +120,11 @@ class PresupuestoAdminEdit {
this.tiradasAlternativas.init();
this.resumen.init();
$('#btn_aceptar_revisado').on('click', function () {
this.resumen.updateTotales({ updateLP: true, updateServicios: true, updateEnvio: true });
}.bind(this));
if (window.location.href.includes("edit")) {
setTimeout(() => {