From d8a57f71c68731d638a8df18f05754a05c0e7eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Wed, 18 Mar 2026 23:15:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[quality]=20=EC=B6=9C=ED=95=98=20?= =?UTF-8?q?=EC=83=81=EC=84=B8=EC=97=90=20order=5Fid=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20+=20=EA=B2=80=EC=82=AC=EC=99=84=EB=A3=8C=20=EA=B1=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EC=B0=A8=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- app/Services/QmsLotAuditService.php | 1 + app/Services/QualityDocumentService.php | 4 ++++ 2 files changed, 5 insertions(+) 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) {