From 41177f8f6cd66a1206b0f52baa1dbcf5af8e0390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sat, 21 Mar 2026 07:59:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=A3=BC=EB=AC=B8/=EC=9E=AC=EA=B3=A0?= =?UTF-8?q?=EC=83=9D=EC=82=B0]=20item=5Fid=20=EA=B2=80=EC=A6=9D=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20options.reg=5Fdate=20validatio?= =?UTF-8?q?n=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Requests/Order/StoreOrderRequest.php | 3 ++- app/Http/Requests/Order/UpdateOrderRequest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Order/StoreOrderRequest.php b/app/Http/Requests/Order/StoreOrderRequest.php index e4a4a5c4..312acf2c 100644 --- a/app/Http/Requests/Order/StoreOrderRequest.php +++ b/app/Http/Requests/Order/StoreOrderRequest.php @@ -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', diff --git a/app/Http/Requests/Order/UpdateOrderRequest.php b/app/Http/Requests/Order/UpdateOrderRequest.php index 2a2b17be..5fb611e6 100644 --- a/app/Http/Requests/Order/UpdateOrderRequest.php +++ b/app/Http/Requests/Order/UpdateOrderRequest.php @@ -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',