fix: [quality] 출하 상세에 order_id 추가 + 검사완료 건 수정 차단
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user