fix: [quality] 출하 상세에 order_id 추가 + 검사완료 건 수정 차단

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 23:15:57 +09:00
parent b3869cfadb
commit d8a57f71c6
2 changed files with 5 additions and 0 deletions

View File

@@ -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) {