diff --git a/app/Services/QmsLotAuditService.php b/app/Services/QmsLotAuditService.php index 8e07a4a2..626ff052 100644 --- a/app/Services/QmsLotAuditService.php +++ b/app/Services/QmsLotAuditService.php @@ -688,6 +688,7 @@ private function getShipmentDetail(int $id): array 'type' => 'shipping', 'data' => [ 'id' => $shipment->id, + 'order_id' => $shipment->order_id, 'shipment_no' => $shipment->shipment_no, 'lot_no' => $shipment->lot_no, 'status' => $shipment->status, diff --git a/app/Services/QualityDocumentService.php b/app/Services/QualityDocumentService.php index 3f76382d..253ae335 100644 --- a/app/Services/QualityDocumentService.php +++ b/app/Services/QualityDocumentService.php @@ -233,6 +233,10 @@ public function update(int $id, array $data) throw new NotFoundHttpException(__('error.not_found')); } + if ($doc->status === QualityDocument::STATUS_COMPLETED) { + throw new BadRequestHttpException('검사완료된 건은 수정할 수 없습니다.'); + } + $beforeData = $doc->toArray(); return DB::transaction(function () use ($doc, $data, $userId, $beforeData, $tenantId) {