From e0974068a085256382bbd3d85b1e300c7cd889c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Sat, 7 Jun 2025 11:40:59 +0200 Subject: [PATCH] =?UTF-8?q?reinicializaci=C3=B3n=20del=20servicio=20despu?= =?UTF-8?q?=C3=A9s=20de=20resetear=20las=20tareas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci4/app/Controllers/Produccion/Ordentrabajo.php | 1 + 1 file changed, 1 insertion(+) 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)