diff --git a/ci4/app/Controllers/Produccion/Ordentrabajo.php b/ci4/app/Controllers/Produccion/Ordentrabajo.php index 687e88d0..fc0cea4d 100755 --- a/ci4/app/Controllers/Produccion/Ordentrabajo.php +++ b/ci4/app/Controllers/Produccion/Ordentrabajo.php @@ -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)