diff --git a/ci4/app/Services/ProductionService.php b/ci4/app/Services/ProductionService.php index fe6568ee..f758c344 100644 --- a/ci4/app/Services/ProductionService.php +++ b/ci4/app/Services/ProductionService.php @@ -755,6 +755,9 @@ class ProductionService extends BaseService public function updateOrdenTrabajo($data): bool { + if(isset($data["is_pedido_espera"])){ + $data["pedido_espera_by"] = auth()->user()->id; + } return $this->otModel->update($this->ot->id, $data); } /**========================================================================