mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
tareas
This commit is contained in:
@ -79,6 +79,13 @@ class Ordentrabajo extends BaseController
|
||||
$r = $this->produccionService->init($orden_trabajo_id)->resetAllTareas();
|
||||
return $this->response->setJSON(["message" => "Tareas reseteadas" ,"status" => $r]);
|
||||
}
|
||||
public function tareas_datatable(int $orden_trabajo_id){
|
||||
$q = $this->produccionService->init($orden_trabajo_id)->taskDatatableQuery($orden_trabajo_id);
|
||||
// return $this->response->setJSON($q->get()->getResultArray());
|
||||
return DataTable::of($q)
|
||||
->add("action" ,fn($q) => $q->id)
|
||||
->toJson(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user