resuelto problema al confirmar presupuesto precio distinto

This commit is contained in:
2025-02-23 21:25:53 +01:00
parent 046c31eb62
commit dc92e352b9
3 changed files with 20 additions and 4 deletions

View File

@ -74,6 +74,8 @@ class DatosGenerales {
this.rl_retractilado = $("#rl_retractilado");
this.rl_retractilado5 = $("#rl_retractilado5");
this.selectedTirada = null;
this.cargando = false;
this.initValidation();
@ -547,6 +549,10 @@ class DatosGenerales {
this.cliente.setOption(datos.clienteId, datos.clienteNombre);
this.cliente.setVal(datos.clienteId);
if(datos.selectedTirada){
this.selectedTirada = datos.selectedTirada;
}
$(this.cliente).trigger('change');
if (datos.excluirRotativa) {

View File

@ -238,7 +238,12 @@ class Resumen {
this.paginas.text(this.datosGenerales.paginas.val());
this.paginasColor.text(this.datosGenerales.paginasColor.val());
this.paginasNegro.text(this.datosGenerales.paginasNegro.val());
this.tirada.text(parseInt($($('.check-tirada-envio:checked')[0]).attr('tirada')));
if(this.datosGenerales.selectedTirada){
this.tirada.text(this.datosGenerales.selectedTirada);
}
else{
this.tirada.text(parseInt($($('.check-tirada-envio:checked')[0]).attr('tirada')));
}
this.prototipo.text(this.datosGenerales.prototipo.is(':checked') ? 'Sí' : 'No');
const HQ = this.disenioInterior.getIsHq();