mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-12 16:38:48 +00:00
Compare commits
4 Commits
9a67c2e78f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 562dc2b231 | |||
| 9a49ccf6b8 | |||
| b2026f1cab | |||
| a5b6bf3a25 |
@ -14,6 +14,8 @@ import java.util.Optional;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@ -63,6 +65,8 @@ import jakarta.validation.Valid;
|
||||
@RequestMapping("/presupuesto")
|
||||
public class PresupuestoController {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(PresupuestoController.class);
|
||||
|
||||
private final PresupuestoRepository presupuestoRepository;
|
||||
|
||||
@Autowired
|
||||
@ -824,6 +828,7 @@ public class PresupuestoController {
|
||||
return ResponseEntity.ok(Map.of("id", saveResult.get("presupuesto_id"),
|
||||
"message", messageSource.getMessage("presupuesto.exito.guardado", null, locale)));
|
||||
} catch (Exception ex) {
|
||||
log.error("Error al guardar el presupuesto", ex);
|
||||
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
.body(Map.of("message",
|
||||
messageSource.getMessage("presupuesto.error.save-internal-error", null, locale),
|
||||
|
||||
@ -18,6 +18,8 @@ server.error.include-binding-errors=never
|
||||
# Opcional: desactivar Whitelabel y servir tu propia página de error
|
||||
server.error.whitelabel.enabled=false
|
||||
|
||||
# Servelet options
|
||||
server.servlet.context-path=/intranet
|
||||
|
||||
# Archivo principal dentro del contenedor (monta /var/log/imprimelibros como volumen)
|
||||
logging.file.name=/var/log/imprimelibros/erp.log
|
||||
@ -42,6 +44,6 @@ safekat.api.password=Safekat2024
|
||||
redsys.environment=test
|
||||
redsys.url=https://sis-t.redsys.es:25443/sis/realizarPago
|
||||
redsys.refund.url=https://sis-t.redsys.es:25443/sis/rest/trataPeticionREST
|
||||
redsys.urls.ok=https://imprimelibros.jjimenez.eu/pagos/redsys/ok
|
||||
redsys.urls.ko=https://imprimelibros.jjimenez.eu/pagos/redsys/ko
|
||||
redsys.urls.notify=https://imprimelibros.jjimenez.eu/pagos/redsys/notify
|
||||
redsys.urls.ok=https://app.imprimelibros.com/intranet/pagos/redsys/ok
|
||||
redsys.urls.ko=https://app.imprimelibros.com/intranet/pagos/redsys/ko
|
||||
redsys.urls.notify=https://app.imprimelibros.com/intranet/pagos/redsys/notify
|
||||
Reference in New Issue
Block a user