diff --git a/app/routes/dashboard.py b/app/routes/dashboard.py index d796150..2eee385 100644 --- a/app/routes/dashboard.py +++ b/app/routes/dashboard.py @@ -7,7 +7,7 @@ from app.models.transaction import Transaction from app.models.category import Category from app.services.fx_service import get_today_rate, get_rate_history, force_refresh from app.services.ai_service import get_latest_daily_insight -from app.services.account_service import get_total_assets, get_total_liabilities +from app.services.account_service import get_total_assets, get_total_liabilities, recalc_all from datetime import date, datetime, timedelta import calendar @@ -62,6 +62,7 @@ def index(): net_cash_flow = float(total_income) - float(total_expense) # ── Accounts ───────────────────────────────────── + recalc_all() accounts = Account.query.filter_by(is_active=True).order_by(Account.name).all() total_assets = get_total_assets() total_liabilities = get_total_liabilities() diff --git a/app/templates/dashboard/index.html b/app/templates/dashboard/index.html index e1db06d..56e5c71 100644 --- a/app/templates/dashboard/index.html +++ b/app/templates/dashboard/index.html @@ -197,7 +197,17 @@