mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-09-01 02:44:13 +00:00
smc report for specific containers
This commit is contained in:
+2
-1
@@ -240,7 +240,8 @@ Route::get('/settings', function () {
|
||||
})->name('settings');
|
||||
|
||||
Route::get('/customer/summary/monthly', function () {
|
||||
$containers = Container::whereMonth('loading_date', 1)->where('owner_id', 3)->get();
|
||||
// $containers = Container::whereMonth('loading_date', 1)->where('owner_id', 3)->get();
|
||||
$containers = Container::whereIn('reference', ['SM21-166', 'SM21-168', 'SM21-170', 'SM21-171', 'SM21-172', 'SM21-173', 'EPS-3833'])->get();
|
||||
foreach ($containers as $container){
|
||||
$packingLists = $container->packingLists()->get()->filter(function ($packingList) {
|
||||
return $packingList->owner->company_module_id === 248;
|
||||
|
||||
Reference in New Issue
Block a user