smc report for specific containers

This commit is contained in:
omair saleh
2022-03-18 17:44:28 +08:00
parent 54dd6d407d
commit 3326de9c4f
+2 -1
View File
@@ -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;