From 3326de9c4fa0e7db13652844e3e7f212c4d7bac8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 18 Mar 2022 17:44:28 +0800 Subject: [PATCH] smc report for specific containers --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 1ecd214e..53c54686 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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;