diff --git a/app/Classes/Modules/PackingLists/Processors/FetchWarehouseReceiveListFromVTPortalProcessor.php b/app/Classes/Modules/PackingLists/Processors/FetchWarehouseReceiveListFromVTPortalProcessor.php index c4ca49a3..7a06a527 100644 --- a/app/Classes/Modules/PackingLists/Processors/FetchWarehouseReceiveListFromVTPortalProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/FetchWarehouseReceiveListFromVTPortalProcessor.php @@ -141,10 +141,12 @@ class FetchWarehouseReceiveListFromVTPortalProcessor $quantity = $parcel[16]; - if(!$quantity || !$parcel[23] || !$parcel[22] || !$parcel[21]){ + if(!$quantity){ continue; } + if($parcel[23] === null) continue; + try { $order = $this->fetchesOrder->execute(['reference' => $orderNumber]); $appointee_id = $order->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id;