diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index 0ed30b6..f181d48 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -1376,7 +1376,7 @@ public function createProductionOrder(int $orderId, array $data) } } - return DB::transaction(function () use ($order, $data, $tenantId, $userId, $itemsByProcess, $nodesBomMap) { + return DB::transaction(function () use ($order, $data, $tenantId, $userId, $itemsByProcess, $nodesBomMap, $isStock) { $workOrders = []; // 담당자 ID 배열 처리 (assignee_ids 우선, fallback으로 assignee_id) @@ -1530,7 +1530,7 @@ public function createProductionOrder(int $orderId, array $data) 'item_id' => $itemId, 'item_name' => $orderItem->item_name, 'specification' => $orderItem->specification, - 'quantity' => $orderItem->quantity, + 'quantity' => (int) $orderItem->quantity, 'unit' => $orderItem->unit, 'sort_order' => $sortOrder++, 'status' => 'pending',