From 3bb072ceeed85453d96a5d8bfaa69757f62764a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 4 Feb 2026 21:37:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=ED=99=88=ED=83=9D=EC=8A=A4=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EB=B2=84=ED=8A=BC=20=EC=8A=A4=ED=83=80=EC=9D=BC=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20loaded=20=ED=94=8C=EB=9E=98?= =?UTF-8?q?=EA=B7=B8=20=EC=B4=88=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/barobill/hometax/index.blade.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/resources/views/barobill/hometax/index.blade.php b/resources/views/barobill/hometax/index.blade.php index 94ea49d5..e6bc5469 100644 --- a/resources/views/barobill/hometax/index.blade.php +++ b/resources/views/barobill/hometax/index.blade.php @@ -471,6 +471,10 @@ className="flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-700 rounded // 현재 탭 데이터 로드 (조회 버튼용) const loadCurrentTabData = () => { + // loaded 플래그 초기화 (탭 전환 시에도 새 날짜로 재조회되도록) + setSalesData(prev => ({ ...prev, loaded: false })); + setPurchaseData(prev => ({ ...prev, loaded: false })); + if (activeTab === 'sales') { loadSalesData(); } else { @@ -830,14 +834,18 @@ className={`px-3 py-2 text-xs border-t border-b border-r border-[#ced4da] transi className={`px-3 py-2 text-xs border border-[#ced4da] transition-colors rounded-r ${selectedPeriod === 'year' ? 'bg-[#0d6efd] text-white border-[#0d6efd]' : 'bg-white hover:bg-[#e9ecef]'}`} >1년 - {/* 검색 버튼 */} + {/* 조회 버튼 */} {/* 거래처 행 */}