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:
@@ -19,10 +19,10 @@ use Illuminate\Http\Request;
|
||||
class MonthlyReportController
|
||||
{
|
||||
public function salesReport(Request $request): JsonResponse {
|
||||
$today = Carbon::now();
|
||||
$today = Carbon::now()->subMonth();
|
||||
|
||||
$start_day = 1;
|
||||
$end_day = 3;
|
||||
$start_day = 20;
|
||||
$end_day = 30;
|
||||
|
||||
$containers = Container::whereDay('loading_date', '>=', $start_day)->whereDay('loading_date', '<=', $end_day)->whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user