temp show specific report period

This commit is contained in:
omair saleh
2021-10-11 14:51:57 +08:00
parent a1b5737935
commit 7965398c5a
@@ -31,9 +31,9 @@ class MonthlyReportController
return $container->packages;
});
dd($packages->flatMap(function ($container) {
return $container->order;
})->unique());
dd($packages->flatMap(function ($package) {
return $package->order;
}));
$totalCbm = $packages->sum(function($package){
return (( (float) $package->width / 100) * ( (float) $package->length / 100) * ( (float) $package->height / 100)) * $package->quantity;