From 53b13501a9a6d9b37f22637bdbc12989a28b8a87 Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Tue, 6 Jan 2026 00:40:32 +0530 Subject: [PATCH] fix: get correct total budget data --- .../budget_variance_report/budget_variance_report.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/erpnext/accounts/report/budget_variance_report/budget_variance_report.py b/erpnext/accounts/report/budget_variance_report/budget_variance_report.py index a9684d08004..f99f6601db5 100644 --- a/erpnext/accounts/report/budget_variance_report/budget_variance_report.py +++ b/erpnext/accounts/report/budget_variance_report/budget_variance_report.py @@ -197,15 +197,15 @@ def get_data_from_budget_map(budget_map, filters): "account": account, } + running_budget = 0 + running_actual = 0 + + total_budget = 0 + total_actual = 0 + for fy in fiscal_years: fy_name = fy[0] - running_budget = 0 - running_actual = 0 - - total_budget = 0 - total_actual = 0 - for from_date, to_date in get_period_date_ranges(filters["period"], fy_name): months = get_months_between(from_date, to_date)