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