cargar lineas problema lomo

This commit is contained in:
2025-01-02 17:49:59 +01:00
parent e9d4b0971b
commit ff082dac7f
3 changed files with 8 additions and 5 deletions

View File

@ -967,7 +967,7 @@ class Comparador {
}
if (uso == 'cubierta') {
datos.datosPedido.lomo = this.getLomoLineasPresupuesto('interior');
datos.datosPedido.lomo = $("#lomo_cubierta").val();
datos.datosPedido.solapas = $('#solapas').prop('checked') ? 1 : 0;
datos.datosPedido.solapas_ancho = $('#solapas').prop('checked') ? parseInt($('#solapas_ancho').val()) : 0;
if (this.tipo_impresion_id == 1 || this.tipo_impresion_id == 3){
@ -975,7 +975,7 @@ class Comparador {
}
}
else if (uso == 'sobrecubierta') {
datos.datosPedido.lomo = this.getLomoLineasPresupuesto() + this.getLomoLineasPresupuesto('cubierta');
datos.datosPedido.lomo = $("#lomo_sobrecubierta");
datos.datosPedido.solapas = $('#solapas_sobrecubierta').prop('checked') ? 1 : 0;
datos.datosPedido.solapas_ancho = $('#solapas_sobrecubierta').prop('checked') ? parseInt($('#solapas_ancho_sobrecubierta').val()) : 0;
}