feat: 기간별 판매현황 기본 조회 기간을 이번달 → 이번주(월~오늘)로
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1105,7 +1105,8 @@ class SalesReport extends BaseController
|
|||||||
return redirect()->to(work_area_home_url())->with('error', '지자체를 선택해 주세요.');
|
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'));
|
$endDate = (string) ($this->request->getGet('end_date') ?? date('Y-m-d'));
|
||||||
if ($startDate > $endDate) {
|
if ($startDate > $endDate) {
|
||||||
[$startDate, $endDate] = [$endDate, $startDate];
|
[$startDate, $endDate] = [$endDate, $startDate];
|
||||||
|
|||||||
Reference in New Issue
Block a user