mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add error resposne to get_orden_trabajo_summary
This commit is contained in:
@ -68,8 +68,13 @@ class Ordentrabajo extends BaseController
|
||||
|
||||
public function get_orden_trabajo_summary($orden_trabajo_id)
|
||||
{
|
||||
$summary = $this->produccionService->init($orden_trabajo_id)->getSummary();
|
||||
return $this->response->setJSON($summary);
|
||||
try {
|
||||
//code...
|
||||
$summary = $this->produccionService->init($orden_trabajo_id)->getSummary();
|
||||
return $this->response->setJSON($summary);
|
||||
} catch (\Throwable $th) {
|
||||
return $this->response->setStatusCode(500)->setJSON(["message" => $th->getMessage(), "error" => $th]);
|
||||
}
|
||||
}
|
||||
public function add() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user