debug loaded container job

This commit is contained in:
omair saleh
2021-12-07 11:47:27 +08:00
parent 2c03e68242
commit bc5a8bce47
2 changed files with 5 additions and 1 deletions
@@ -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
View File
@@ -102,7 +102,8 @@ Route::get('/orders/refresh', function(){
Route::get('/containers/refresh', function(){
FetchContainersStatusUpdateFromVTPortalJob::dispatch();
FetchLoadedContainersFromVTPortalJob::dispatch();
// FetchContainersStatusUpdateFromVTPortalJob::dispatch();
return redirect('orders');