From 9f16942366f0b13c1dcf052678ba326945f6a2b6 Mon Sep 17 00:00:00 2001 From: taekyoungc Date: Thu, 25 Jun 2026 14:52:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=B0=EA=B0=84=EB=B3=84=20=ED=8C=90?= =?UTF-8?q?=EB=A7=A4=ED=98=84=ED=99=A9=20=EA=B8=B0=EB=B3=B8=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EA=B8=B0=EA=B0=84=EC=9D=84=20=EC=9D=B4=EB=B2=88?= =?UTF-8?q?=EB=8B=AC=20=E2=86=92=20=EC=9D=B4=EB=B2=88=EC=A3=BC(=EC=9B=94~?= =?UTF-8?q?=EC=98=A4=EB=8A=98)=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- app/Controllers/Admin/SalesReport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];