create POD dates pedido

This commit is contained in:
amazuecos
2025-04-28 02:03:40 +02:00
parent 029757bb40
commit d1e5731d1d
5 changed files with 139 additions and 14 deletions

View File

@ -585,4 +585,17 @@ class Ordentrabajo extends BaseController
];
return $this->response->setJSON($data);
}
public function update_pod_pedido_dates($orden_trabajo_id)
{
$this->produccionService->init($orden_trabajo_id);
if($this->produccionService->isPOD){
$status = $this->produccionService->updatePodDates();
return $this->response->setJSON(["message" => lang("App.global_alert_save_success"), "status" => $status, "data" => $this->produccionService->getPedido()]);
}else{
return $this->response->setJSON(["message" => lang("App.global_alert_save_success"), "status" => false, "data" => $this->produccionService->getPedido()]);
}
}
}