trabajando en checkear las lineas de presupuesto

This commit is contained in:
jaimejimenezortega
2024-03-19 08:20:55 +01:00
parent c815c24150
commit a231bd9c1b
8 changed files with 235 additions and 22 deletions

View File

@ -4001,7 +4001,7 @@ async function calcularPresupuesto_sobrecubierta(fromComparador=false, input_dat
merma: parseInt($('#mermacubierta').val()),
ancho: dimension.ancho,
alto: dimension.alto,
lomo: getLomoLineasPresupuesto() + getLomoCubiertaLineasPresupuesto,
lomo: getLomoLineasPresupuesto() + getLomoCubiertaLineasPresupuesto(),
papel_generico_id: input_data.papel_generico_id,
papel_generico: input_data.papel_generico,
gramaje: input_data.gramaje,
@ -4137,6 +4137,7 @@ function getLomoLineasPresupuesto(){
catch(error){
lomoTotal = 0
}
$('#lomo_cubierta').val(lomoTotal)
return lomoTotal
}
@ -4152,6 +4153,7 @@ function getLomoCubiertaLineasPresupuesto(){
catch(error){
lomoTotal = 0
}
$('#lomo_sobrecubierta').val(lomoTotal+parseFloat($('#lomo_cubierta').val()))
return lomoTotal
}

View File

@ -17,6 +17,10 @@
value="<?= $presupuestoEntity->id ?>"></input>
<input type="hidden" name="tipo_impresion_id" id="tipo_impresion_id" class="form-control"
value="<?= $tipo_impresion_id ?>"></input>
<input type="hidden" name="lomo_cubierta" id="lomo_cubierta" class="form-control"
value="<?= is_null($presupuestoEntity->lomo_cubierta)?0:$presupuestoEntity->lomo_cubierta ?>"></input>
<input type="hidden" name="lomo_sobrecubierta" id="lomo_sobrecubierta" class="form-control"
value="<?= is_null($presupuestoEntity->lomo_sobrecubierta)?0:$presupuestoEntity->lomo_sobrecubierta ?>"></input>
<input type="hidden" name="isCosido" id="isCosido" class="form-control"
value="<?= $isCosido ?>"></input>
<input type="hidden" name="POD" id="POD" class="form-control"