diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index 98b35d1..ab63e6f 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -1410,6 +1410,8 @@ public function createProductionOrder(int $orderId, array $data) $woItemOptions = array_filter([ 'floor' => $orderItem->floor_code, 'code' => $orderItem->symbol_code, + 'product_code' => ! empty($nodeOptions['product_code']) ? $nodeOptions['product_code'] : null, + 'product_name' => ! empty($nodeOptions['product_name']) ? $nodeOptions['product_name'] : null, 'width' => $woWidth, 'height' => $woHeight, 'cutting_info' => $nodeOptions['cutting_info'] ?? null, diff --git a/app/Services/WorkOrderService.php b/app/Services/WorkOrderService.php index 3311d68..13e519b 100644 --- a/app/Services/WorkOrderService.php +++ b/app/Services/WorkOrderService.php @@ -285,6 +285,8 @@ public function store(array $data) $options = array_filter([ 'floor' => $orderItem->floor_code, 'code' => $orderItem->symbol_code, + 'product_code' => ! empty($nodeOptions['product_code']) ? $nodeOptions['product_code'] : null, + 'product_name' => ! empty($nodeOptions['product_name']) ? $nodeOptions['product_name'] : null, 'width' => $nodeOptions['width'] ?? $nodeOptions['open_width'] ?? null, 'height' => $nodeOptions['height'] ?? $nodeOptions['open_height'] ?? null, 'cutting_info' => $nodeOptions['cutting_info'] ?? null,