mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/update_ot_object_after_reset_tareas' into 'main'
reinicialización del servicio después de resetear las tareas See merge request jjimenez/safekat!855
This commit is contained in:
@ -391,6 +391,7 @@ class Ordentrabajo extends BaseController
|
||||
public function reset_tareas(int $orden_trabajo_id)
|
||||
{
|
||||
$r = $this->produccionService->init($orden_trabajo_id)->resetAllTareas();
|
||||
$this->produccionService->init($orden_trabajo_id); // Re-init service to update the state of the OT
|
||||
return $this->response->setJSON(["message" => "Tareas reseteadas", "status" => $r]);
|
||||
}
|
||||
public function delete_tarea(int $orden_trabajo_tarea_id)
|
||||
|
||||
Reference in New Issue
Block a user