mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-20 21:14:10 +00:00
debug loaded container job
This commit is contained in:
+3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -102,7 +102,8 @@ Route::get('/orders/refresh', function(){
|
||||
|
||||
Route::get('/containers/refresh', function(){
|
||||
|
||||
FetchContainersStatusUpdateFromVTPortalJob::dispatch();
|
||||
FetchLoadedContainersFromVTPortalJob::dispatch();
|
||||
// FetchContainersStatusUpdateFromVTPortalJob::dispatch();
|
||||
|
||||
return redirect('orders');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user