From 75ee110cfb2b978f1096ca9a9a43880eee1deae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 29 Jan 2026 14:44:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=85=EA=B3=A0=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20=EA=B8=B0=EB=B3=B8=20=EB=82=A0=EC=A7=9C=20=EB=B2=94=EC=9C=84?= =?UTF-8?q?=EB=A5=BC=20=EC=B5=9C=EA=B7=BC=2030=EC=9D=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 이번 달 1일 기준 → 오늘 기준 30일 전으로 변경 - 연말/연초 월 경계에서 데이터 누락 방지 --- .../material/ReceivingManagement/ReceivingList.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/material/ReceivingManagement/ReceivingList.tsx b/src/components/material/ReceivingManagement/ReceivingList.tsx index 98ce1d2b..4ae6d8ac 100644 --- a/src/components/material/ReceivingManagement/ReceivingList.tsx +++ b/src/components/material/ReceivingManagement/ReceivingList.tsx @@ -50,10 +50,10 @@ export function ReceivingList() { const [stats, setStats] = useState(null); const [totalItems, setTotalItems] = useState(0); - // ===== 날짜 범위 상태 ===== + // ===== 날짜 범위 상태 (최근 30일) ===== const today = new Date(); - const firstDayOfMonth = new Date(today.getFullYear(), today.getMonth(), 1); - const [startDate, setStartDate] = useState(firstDayOfMonth.toISOString().split('T')[0]); + const thirtyDaysAgo = new Date(today.getTime() - 30 * 24 * 60 * 60 * 1000); + const [startDate, setStartDate] = useState(thirtyDaysAgo.toISOString().split('T')[0]); const [endDate, setEndDate] = useState(today.toISOString().split('T')[0]); // ===== 필터 상태 =====