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

View File

@ -351,6 +351,11 @@ public class PresupuestoService {
body.put("interior", interior);
body.put("cubierta", cubierta);
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()) {
Map<String, Object> sobrecubierta = new HashMap<>();
sobrecubierta.put("papel", presupuesto.getPapelSobrecubiertaId());