trabajando en guardar

This commit is contained in:
2025-01-15 01:50:15 +01:00
parent a4394ed470
commit a9eece668c
16 changed files with 859 additions and 846 deletions

View File

@ -93,18 +93,6 @@ class DatosLibro {
this.paginas.on('change', this.changePaginas.bind(this));
this.tirada.on('change', this.changeTirada.bind(this));
$('.formato-libro').on('change', function () {
$(document).trigger('update-lineas-presupuesto');
$(document).trigger('update-servicios');
/* TO-DO
updatePresupuesto({
update_envios: true,
update_resumen: true,
update_tiradas_alternativas: true
})*/
});
}
}
@ -183,14 +171,13 @@ class DatosLibro {
this.checkPaginasPresupuesto();
$(document).trigger('update-lineas-presupuesto');
$(document).trigger('update-servicios');
// TO-DO
/*updatePresupuesto({
$(document).trigger('update-presupuesto', {
update_lineas : true,
update_servicios : true,
update_envios: true,
update_resumen: true,
update_tiradas_alternativas: true
})*/
});
}
@ -273,17 +260,15 @@ class DatosLibro {
$('#compPaginasNegrohq').trigger('change');
}
$(document).trigger('update-lineas-presupuesto');
$(document).trigger('update-servicios');
// TO-DO
/*
updatePresupuesto({
$(document).trigger('update-presupuesto', {
update_lineas : true,
update_servicios : true,
update_envios: true,
update_resumen: true,
update_tiradas_alternativas: true
})
*/
});
}
}
@ -297,29 +282,8 @@ class DatosLibro {
if (url_parts2[url_parts2.length - 2] == 'edit') {
$(document).trigger('update-lineas-presupuesto');
//update_servicios(false)
//updateLineasPresupuesto()
/* TO-DO
if(update_tiradas_alternativas)
updatePresupuesto({
update_lineas: true,
update_servicios: false,
update_envios: false,
update_resumen: false,
update_tiradas_alternativas: false
})
else
updatePresupuesto({
update_lineas: true,
update_servicios: false,
update_envios: false,
update_resumen: false,
update_tiradas_alternativas: false
})
checkInsertar()
*/
$(document).trigger('ckeck-lineas-envios');
}
}