mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-13 00:48:49 +00:00
terminado consultas de pedidos a safekat
This commit is contained in:
8406
logs/erp.log
8406
logs/erp.log
File diff suppressed because one or more lines are too long
@ -386,8 +386,6 @@ public class PedidosController {
|
|||||||
Boolean result = pedidoService.aceptarFerro(id, locale);
|
Boolean result = pedidoService.aceptarFerro(id, locale);
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
entity.setEstado(PedidoLinea.Estado.haciendo_ferro);
|
|
||||||
repoPedidoLinea.save(entity);
|
|
||||||
String successMsg = messageSource.getMessage("pedido.success.estado-actualizado", null, locale);
|
String successMsg = messageSource.getMessage("pedido.success.estado-actualizado", null, locale);
|
||||||
return Map.of(
|
return Map.of(
|
||||||
"success", true,
|
"success", true,
|
||||||
|
|||||||
@ -42,7 +42,7 @@ $(() => {
|
|||||||
if (estadoSpan.length) {
|
if (estadoSpan.length) {
|
||||||
estadoSpan.text(response.state);
|
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}']`)
|
$(`.update-estado-button[data-linea-id='${lineaId}']`)
|
||||||
.closest('.update-estado-button')
|
.closest('.update-estado-button')
|
||||||
.addClass('d-none');
|
.addClass('d-none');
|
||||||
@ -57,7 +57,12 @@ $(() => {
|
|||||||
cancelButton: 'btn btn-light'
|
cancelButton: 'btn btn-light'
|
||||||
},
|
},
|
||||||
showConfirmButton: false
|
showConfirmButton: false
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.dismiss === Swal.DismissReason.timer) {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function (xhr, status, error) {
|
||||||
|
|||||||
@ -60,7 +60,12 @@ $(() => {
|
|||||||
cancelButton: 'btn btn-light'
|
cancelButton: 'btn btn-light'
|
||||||
},
|
},
|
||||||
showConfirmButton: false
|
showConfirmButton: false
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.dismiss === Swal.DismissReason.timer) {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function (xhr, status, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user