diff --git a/app/Controllers/Admin/SalesReport.php b/app/Controllers/Admin/SalesReport.php index 43fc7f0..5ab5460 100644 --- a/app/Controllers/Admin/SalesReport.php +++ b/app/Controllers/Admin/SalesReport.php @@ -1105,7 +1105,8 @@ class SalesReport extends BaseController return redirect()->to(work_area_home_url())->with('error', '지자체를 선택해 주세요.'); } - $startDate = (string) ($this->request->getGet('start_date') ?? date('Y-m-01')); + // 기본 조회 기간: 이번주(월요일 ~ 오늘) + $startDate = (string) ($this->request->getGet('start_date') ?? date('Y-m-d', strtotime('monday this week'))); $endDate = (string) ($this->request->getGet('end_date') ?? date('Y-m-d')); if ($startDate > $endDate) { [$startDate, $endDate] = [$endDate, $startDate];