reimpresiones hechas correctamente

This commit is contained in:
2025-12-11 19:46:01 +01:00
parent 3b9f446195
commit cf73801dbe
4 changed files with 1343 additions and 940 deletions

File diff suppressed because it is too large Load Diff

View File

@ -351,6 +351,11 @@ public class PresupuestoService {
body.put("interior", interior); body.put("interior", interior);
body.put("cubierta", cubierta); body.put("cubierta", cubierta);
body.put("guardas", null); body.put("guardas", null);
// Para las reimpresiones
if(presupuesto.getIsReimpresion() != null && presupuesto.getIsReimpresion()) {
body.put("reimpresion", 1);
body.put("iskn", presupuesto.getProveedorRef1());
}
if (presupuesto.getSobrecubierta()) { if (presupuesto.getSobrecubierta()) {
Map<String, Object> sobrecubierta = new HashMap<>(); Map<String, Object> sobrecubierta = new HashMap<>();
sobrecubierta.put("papel", presupuesto.getPapelSobrecubiertaId()); sobrecubierta.put("papel", presupuesto.getPapelSobrecubiertaId());

View File

@ -16,7 +16,7 @@
<div class="col-9 mx-auto mt-4"> <div class="col-9 mx-auto mt-4">
<h5 id="resumen-titulo" class="text-center"></h5> <h5 id="resumen-titulo" class="text-center"></h5>
<h6 th:if="${presupuesto.isReimpresion}" th:text="#{presupuesto.reimpresion}" <h6 th:if="${presupuesto?.isReimpresion}" th:text="#{presupuesto.reimpresion}"
class="text-uppercase bg-danger text-white text-center">REIMPRESION</h6> class="text-uppercase bg-danger text-white text-center">REIMPRESION</h6>
<table id="resumen-tabla-final" class="table table-borderless table-striped mt-3" <table id="resumen-tabla-final" class="table table-borderless table-striped mt-3"
th:data-currency="#{app.currency}"> th:data-currency="#{app.currency}">

View File

@ -4,7 +4,7 @@
<div class="d-flex"> <div class="d-flex">
<div class="flex-grow-1"> <div class="flex-grow-1">
<h5 th:text="#{presupuesto.resumen-presupuesto}">Resumen presupuesto</h5> <h5 th:text="#{presupuesto.resumen-presupuesto}">Resumen presupuesto</h5>
<h6 th:if="${presupuesto.isReimpresion}" th:text="#{presupuesto.reimpresion}" <h6 th:if="${presupuesto?.isReimpresion}" th:text="#{presupuesto.reimpresion}"
class="text-uppercase bg-danger text-white text-center">REIMPRESION</h6> class="text-uppercase bg-danger text-white text-center">REIMPRESION</h6>
</div> </div>
</div> </div>