trabajando en añadir tiradas alternativas

This commit is contained in:
2025-01-14 20:33:55 +01:00
parent 28a133f687
commit a4394ed470
20 changed files with 934 additions and 559 deletions

View File

@ -569,6 +569,9 @@ class PresupuestoCliente {
popAlert2Hide();
for (let i = 0; i < response.tiradas.length; i++) {
if(i==0){
$('#eb').val(response.eb[i]);
}
new tarjetaTiradasPrecio(
this.divTiradasPrecios,
('precio-tiradas-' + response.tiradas[i]),
@ -677,6 +680,10 @@ class PresupuestoCliente {
},
}
if(this.direcciones.getSelectedTirada() != null && this.direcciones.getSelectedTirada() != undefined && this.direcciones.getSelectedTirada() > 0){
this.datos.selectedTirada = this.direcciones.getSelectedTirada();
}
this.datos.guardas = this.disenioCubierta.getGuardas();
if (calcularSolapas) {
@ -692,6 +699,7 @@ class PresupuestoCliente {
this.datos.retractilado = this.datosGenerales.retractilado.is(':checked') ? 1 : 0;
this.datos.retractilado5 = this.datosGenerales.retractilado5.is(':checked') ? 1 : 0;
this.datos.eb = $('#eb').val();
this.datos.cubierta = {
tipoCubierta: this.disenioCubierta.disenioCubierta.filter('.selected').attr('id'),
@ -758,6 +766,7 @@ class PresupuestoCliente {
referenciaCliente: this.datosGenerales.referenciaCliente.val(),
}
this.datos.selectedTirada = this.direcciones.getSelectedTirada();
this.datos
}
if (window.location.href.includes("edit")) {