From bf9fbd57a49f7dd659a33809df3eb7f38afcd2e9 Mon Sep 17 00:00:00 2001 From: taekyoungc Date: Mon, 29 Jun 2026 12:26:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=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=EA=B8=B0=EA=B0=84=EC=9D=84=20'=EC=98=A4=EB=8A=98?= =?UTF-8?q?=EB=A1=9C=EB=B6=80=ED=84=B0=20=EC=9D=BC=EC=A3=BC=EC=9D=BC=20?= =?UTF-8?q?=EC=A0=84=20~=20=EC=98=A4=EB=8A=98'=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 기존 'monday this week'는 월요일 접속 시 시작=종료=오늘이 되는 문제 → 시작일 = 오늘-7일, 종료일 = 오늘 으로 변경 Co-Authored-By: Claude Opus 4.8 --- app/Controllers/Admin/SalesReport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];