mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
temp test vt warehouse list
This commit is contained in:
+3
-2
@@ -131,13 +131,14 @@ class FetchWarehouseReceiveListFromVTPortalProcessor
|
||||
$warehouseListRequest = $this->fetchesDataFRomVTPortal->clientRequest('http://portal.vtnation.com.my/Services/DataControllerService.asmx/GetPage', 'POST', json_decode('{"controller":"WarehouseList","view":"grid1","request":{"PageIndex":-1,"PageSize":10000,"SortExpression":"ParcelDate asc","Filter":'.$filter.'}}'), '');
|
||||
|
||||
$response = $this->fetchesDataFRomVTPortal->getResponseBody($warehouseListRequest);
|
||||
|
||||
dd($response->Rows);
|
||||
foreach ($response->Rows as $parcel){
|
||||
|
||||
dd($parcel);
|
||||
$marking = preg_split('(-|\(|\)|\/)', str_replace("/YW","", $parcel[5]));
|
||||
|
||||
$orderNumber = $marking[array_key_last($marking)];
|
||||
|
||||
continue;
|
||||
if(!$parcel[9]){
|
||||
continue;
|
||||
}
|
||||
|
||||
+11
-10
@@ -110,22 +110,23 @@ 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();
|
||||
|
||||
FetchWarehouseReceiveListFromVTPortalJob::withChain([
|
||||
new FetchLoadedContainersFromVTPortalJob,
|
||||
new FetchPackingListFromVTPortalJob,
|
||||
new FetchContainersStatusUpdateFromVTPortalJob,
|
||||
new FetchDeliveryListFromVTPortalJob,
|
||||
new FetchOrdersFromYDPortalJob
|
||||
])->dispatch();
|
||||
|
||||
return redirect('orders');
|
||||
// return redirect('orders');
|
||||
|
||||
})->name('orders.refresh');
|
||||
|
||||
Route::get('/containers/refresh', function(){
|
||||
|
||||
(App()->make(\App\Classes\Modules\PackingLists\Processors\FetchPackingListFromVTPortalProcessor::class))->execute();
|
||||
(App()->make(\App\Classes\Modules\PackingLists\Processors\FetchWarehouseReceiveListFromVTPortalProcessor::class))->execute();
|
||||
// FetchLoadedContainersFromVTPortalJob::dispatch();
|
||||
// FetchContainersStatusUpdateFromVTPortalJob::dispatch();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user