update smc monthly summary containers ref

This commit is contained in:
omair saleh
2022-05-31 15:18:40 +08:00
parent 86913ad80b
commit 0102dabdba
+1 -2
View File
@@ -271,8 +271,7 @@ Route::get('/settings', function () {
})->name('settings');
Route::get('/customer/summary/monthly', function () {
dd(\Carbon\Carbon::now()->format('m'));
$containers = Container::whereMonth('loading_date', 5)->get();
$containers = Container::whereMonth('loading_date', '>', ((float)\Carbon\Carbon::now()->format('m') - 1))->get();
// $containers = Container::whereIn('reference', ['cs-6062', 'eps-3926', 'sh-1122', 'sh-1121', 'eps-3925', 'cs-6060', 'eps-3927', 'cs-6066', 'cs-6069'])->get();
foreach ($containers as $container){
$packingLists = $container->packingLists()->get()->filter(function ($packingList) {