mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-03-01 14:19:14 +00:00
solucionado problema con cargar solapas de cubierta y formato. También añadido los lomos desde sk al guardar
This commit is contained in:
@ -126,6 +126,13 @@ public class PresupuestoFormatter {
|
||||
},
|
||||
locale);
|
||||
}
|
||||
textoResumen += ms.getMessage(
|
||||
"presupuesto.resumen-lomos",
|
||||
new Object[] {
|
||||
p.getLomo() != null ? Math.round(p.getLomo()) : "N/D",
|
||||
p.getLomoCubierta() != null ? Math.round(p.getLomoCubierta()) : "N/D"
|
||||
},
|
||||
locale);
|
||||
textoResumen += ms.getMessage("presupuesto.resumen-texto-end", null, locale);
|
||||
|
||||
return textoResumen;
|
||||
|
||||
@ -1299,12 +1299,9 @@ public class PresupuestoService {
|
||||
|
||||
public Map<String, Object> obtenerLomos(Presupuesto presupuesto) {
|
||||
try {
|
||||
Long papelInteriorId = presupuesto.getPapelInteriorId() != null ? presupuesto.getPapelInteriorId() : 0L;
|
||||
Long papelCubiertaId = presupuesto.getPapelCubiertaId() != null ? presupuesto.getPapelCubiertaId() : 0L;
|
||||
int paginas = presupuesto.getPaginasNegro() + presupuesto.getPaginasColor();
|
||||
Map<String, Object> response = apiClient.getLomos(papelInteriorId, papelCubiertaId, paginas);
|
||||
Map<String, Object> response = apiClient.getLomos(this.toSkApiRequest(presupuesto));
|
||||
|
||||
return response.get("data") != null ? (Map<String, Object>) response.get("data") : Map.of();
|
||||
return response;
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error obteniendo lomos: " + e.getMessage());
|
||||
return Map.of();
|
||||
|
||||
Reference in New Issue
Block a user