From bcec6822e98d19a9f1a4026c53c2ac50ce542b73 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 7 Jun 2026 22:01:37 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B9=B4=E5=BA=A6=E3=83=AA=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E6=98=87=E9=A0=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/modules/trial_balance/router.py | 2 +- backend/app/routers/trial_balance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/modules/trial_balance/router.py b/backend/app/modules/trial_balance/router.py index 3d51810..69ab607 100644 --- a/backend/app/modules/trial_balance/router.py +++ b/backend/app/modules/trial_balance/router.py @@ -33,7 +33,7 @@ def get_fiscal_years(): end_fy = fiscal_end_year(max_date) result = [] - for fy in range(end_fy, start_fy - 1, -1): + for fy in range(start_fy, end_fy + 1): reiwa = fy - REIWA_OFFSET if reiwa > 0: wareki = f"令和{reiwa}年" diff --git a/backend/app/routers/trial_balance.py b/backend/app/routers/trial_balance.py index 2488d79..c759b0e 100644 --- a/backend/app/routers/trial_balance.py +++ b/backend/app/routers/trial_balance.py @@ -131,7 +131,7 @@ def get_fiscal_years(): end_fy = fiscal_end_year(max_date) result = [] - for fy in range(start_fy, end_fy + 1): # 小さい順(昇順) + for fy in range(start_fy, end_fy + 1): # 古い順 reiwa = fy - REIWA_OFFSET if reiwa > 0: wareki = f"令和{reiwa}年"