mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
temp show specific report period
This commit is contained in:
@@ -21,7 +21,7 @@ class MonthlyReportController
|
||||
public function salesReport(Request $request): JsonResponse {
|
||||
$today = Carbon::now()->subMonth();
|
||||
|
||||
$containers = Container::whereDay('loading_date', '>=', 13)->whereDay('loading_date', '<=', 19)->whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();
|
||||
$containers = Container::whereDay('loading_date', '>=', 20)->whereDay('loading_date', '<=', 26)->whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();
|
||||
|
||||
|
||||
$packages = $containers->flatMap(function ($container) {
|
||||
|
||||
Reference in New Issue
Block a user