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