terminado consultas de pedidos a safekat

This commit is contained in:
2025-12-28 12:01:40 +01:00
parent 61be8d6d3b
commit 5b5ce7ccd7
4 changed files with 60 additions and 8368 deletions

File diff suppressed because one or more lines are too long

View File

@ -386,8 +386,6 @@ public class PedidosController {
Boolean result = pedidoService.aceptarFerro(id, locale);
if (result) {
entity.setEstado(PedidoLinea.Estado.haciendo_ferro);
repoPedidoLinea.save(entity);
String successMsg = messageSource.getMessage("pedido.success.estado-actualizado", null, locale);
return Map.of(
"success", true,

View File

@ -42,7 +42,7 @@ $(() => {
if (estadoSpan.length) {
estadoSpan.text(response.state);
}
if(response.stateKey === 'terminado' || response.stateKey === 'cancelado') {
if (response.stateKey === 'terminado' || response.stateKey === 'cancelado') {
$(`.update-estado-button[data-linea-id='${lineaId}']`)
.closest('.update-estado-button')
.addClass('d-none');
@ -57,7 +57,12 @@ $(() => {
cancelButton: 'btn btn-light'
},
showConfirmButton: false
}).then((result) => {
if (result.dismiss === Swal.DismissReason.timer) {
location.reload();
}
});
;
}
},
error: function (xhr, status, error) {

View File

@ -60,7 +60,12 @@ $(() => {
cancelButton: 'btn btn-light'
},
showConfirmButton: false
}).then((result) => {
if (result.dismiss === Swal.DismissReason.timer) {
location.reload();
}
});
;
}
},
error: function (xhr, status, error) {