arreglados problemas presupuesto, botones css etc

This commit is contained in:
2025-10-16 14:24:24 +02:00
parent f26f96a490
commit 060b435388
16 changed files with 278 additions and 169 deletions

View File

@ -478,14 +478,19 @@ public class PresupuestoController {
Presupuesto p = objectMapper.convertValue(body.get("presupuesto"), Presupuesto.class);
Boolean save = objectMapper.convertValue(body.get("save"), Boolean.class);
String mode = objectMapper.convertValue(body.get("mode"), String.class);
@SuppressWarnings("unchecked")
List<Map<String, Object>> serviciosList = (List<Map<String, Object>>) body.getOrDefault("servicios", List.of());
@SuppressWarnings("unchecked")
Map<String, Object> datosMaquetacion = (Map<String, Object>) objectMapper
.convertValue(body.get("datosMaquetacion"), Map.class);
@SuppressWarnings("unchecked")
Map<String, Object> datosMarcapaginas = (Map<String, Object>) objectMapper
.convertValue(body.get("datosMarcapaginas"), Map.class);
String sessionId = request.getSession(true).getId();
String ip = IpUtils.getClientIp(request);
var resumen = presupuestoService.getResumen(p, serviciosList, save, mode, locale, sessionId, ip);
var resumen = presupuestoService.getResumen(p, serviciosList, datosMaquetacion, datosMarcapaginas, save, mode, locale, sessionId, ip);
return ResponseEntity.ok(resumen);
}
@ -705,7 +710,7 @@ public class PresupuestoController {
}
}
@PostMapping(path = "api/save")
@PostMapping(path = "/api/save")
public ResponseEntity<?> save(
@RequestBody Map<String, Object> body,
Locale locale, HttpServletRequest request) {