diff --git a/app/Classes/Modules/PackingLists/Processors/FetchLoadedContainersFromVTPortalProcessor.php b/app/Classes/Modules/PackingLists/Processors/FetchLoadedContainersFromVTPortalProcessor.php index bb9986c0..88ab07e7 100644 --- a/app/Classes/Modules/PackingLists/Processors/FetchLoadedContainersFromVTPortalProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/FetchLoadedContainersFromVTPortalProcessor.php @@ -161,12 +161,14 @@ class FetchLoadedContainersFromVTPortalProcessor $marking = explode('/', explode('CIEF/', $packingList[13])[1]); if(!array_key_exists(1, $marking)){ + dd('no order number'); continue; } $orderNumber = $marking[1]; if(!$packingList[22]){ + dd('no quantity'); continue; } @@ -174,6 +176,7 @@ class FetchLoadedContainersFromVTPortalProcessor /** @var Order $order */ $order = $this->fetchesOrder->execute(['reference' => $orderNumber]); } catch (ResourceNotFoundException $exception){ + dd('no order found'); continue; } diff --git a/routes/web.php b/routes/web.php index efc1b5cf..fd4e5220 100644 --- a/routes/web.php +++ b/routes/web.php @@ -102,7 +102,8 @@ Route::get('/orders/refresh', function(){ Route::get('/containers/refresh', function(){ - FetchContainersStatusUpdateFromVTPortalJob::dispatch(); + FetchLoadedContainersFromVTPortalJob::dispatch(); +// FetchContainersStatusUpdateFromVTPortalJob::dispatch(); return redirect('orders');