fix: [주문/재고생산] item_id 검증 제거 및 options.reg_date validation 추가

This commit is contained in:
김보곤
2026-03-21 07:59:53 +09:00
parent 244a1f7a24
commit 41177f8f6c
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ public function rules(): array
'options.manager_name' => 'nullable|string|max:100',
'options.production_reason' => 'nullable|string|max:500',
'options.target_stock_qty' => 'nullable|numeric|min:0',
'options.reg_date' => 'nullable|date',
// 절곡품 LOT 정보 (STOCK 전용)
'options.bending_lot' => 'nullable|array',
@@ -70,7 +71,7 @@ public function rules(): array
// 품목 배열
'items' => 'nullable|array',
'items.*.item_id' => 'nullable|integer|exists:items,id',
'items.*.item_id' => 'nullable|integer',
'items.*.item_code' => 'nullable|string|max:50',
'items.*.item_name' => 'required|string|max:200',
'items.*.specification' => 'nullable|string|max:500',

View File

@@ -51,6 +51,7 @@ public function rules(): array
'options.manager_name' => 'nullable|string|max:100',
'options.production_reason' => 'nullable|string|max:500',
'options.target_stock_qty' => 'nullable|numeric|min:0',
'options.reg_date' => 'nullable|date',
// 절곡품 LOT 정보 (STOCK 전용)
'options.bending_lot' => 'nullable|array',
@@ -64,7 +65,7 @@ public function rules(): array
// 품목 배열 (전체 교체)
'items' => 'nullable|array',
'items.*.item_id' => 'nullable|integer|exists:items,id',
'items.*.item_id' => 'nullable|integer',
'items.*.item_code' => 'nullable|string|max:50',
'items.*.item_name' => 'sometimes|required|string|max:200',
'items.*.specification' => 'nullable|string|max:500',