fix vt packing list api

This commit is contained in:
omair saleh
2022-07-21 10:43:40 +08:00
parent 2be24c4dac
commit d4b85f2952
+5 -1
View File
@@ -139,7 +139,11 @@ Route::get('/customer/{marking}/details', function ($marking) {
})->name('customer.profile.details');
Route::get('/orders/refresh', function(\Illuminate\Http\Request $request){
$packingLists = \App\Models\PackingList::where('type', \App\Classes\ValueObjects\Constants\PackingListType::WAREHOUSE_RECEIVE_LIST)->has('containers')->get();
dd($packingLists);
$packingLists->each(function (\App\Models\PackingList $packingList) {
$packingList->containers()->detach();
});
FetchWarehouseReceiveListFromVTPortalJob::withChain([
new FetchLoadedContainersFromVTPortalJob,
new FetchOrdersFromYDPortalJob