mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
fix vt packing list api
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user