fix vt warehouse list

This commit is contained in:
omair saleh
2022-03-27 12:56:31 +08:00
parent 8b6db1fb68
commit 32476afdd4
2 changed files with 9 additions and 11 deletions
@@ -141,7 +141,6 @@ class FetchWarehouseReceiveListFromVTPortalProcessor
continue;
}
dump($orderNumber);
try {
$order = $this->fetchesOrder->execute(['reference' => $orderNumber]);
} catch (ResourceNotFoundException $exception) {
+9 -10
View File
@@ -110,17 +110,16 @@ Route::get('/customer/{marking}/details', function ($marking) {
})->name('customer.profile.details');
Route::get('/orders/refresh', function(){
(App()->make(\App\Classes\Modules\PackingLists\Processors\FetchWarehouseReceiveListFromVTPortalProcessor::class))->execute();
// FetchWarehouseReceiveListFromVTPortalJob::dispatch();
// FetchWarehouseReceiveListFromVTPortalJob::withChain([
// new FetchLoadedContainersFromVTPortalJob,
// new FetchPackingListFromVTPortalJob,
// new FetchContainersStatusUpdateFromVTPortalJob,
// new FetchDeliveryListFromVTPortalJob,
// new FetchOrdersFromYDPortalJob
// ])->dispatch();
// return redirect('orders');
FetchWarehouseReceiveListFromVTPortalJob::withChain([
new FetchLoadedContainersFromVTPortalJob,
new FetchPackingListFromVTPortalJob,
new FetchContainersStatusUpdateFromVTPortalJob,
new FetchDeliveryListFromVTPortalJob,
new FetchOrdersFromYDPortalJob
])->dispatch();
return redirect('orders');
})->name('orders.refresh');