mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-29 17:34:25 +00:00
show orders with shipping packing list more than warehouse received list
This commit is contained in:
@@ -131,3 +131,16 @@ Route::group(['prefix' => 'template', 'as' => 'template.'], function () {
|
||||
return view('pages.templates.shippingQueue');
|
||||
})->name('shipping-queue');
|
||||
});
|
||||
|
||||
Route::get('/debug', function (){
|
||||
$orders = \App\Models\Order::all();
|
||||
|
||||
$issues = [];
|
||||
foreach ($orders as $order){
|
||||
if($order->parcels()->warehouseReceiveList()->sum('quantity') < $order->parcels()->shippingList()->sum('quantity')){
|
||||
$issues[] = $order;
|
||||
}
|
||||
}
|
||||
|
||||
dd($issues);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user