From 0e1ec7fe4f4ff64f2a6c15700ec830f42c71e354 Mon Sep 17 00:00:00 2001 From: anandk-spyke-o1 Date: Wed, 15 Jan 2025 16:10:47 +0530 Subject: [PATCH] fix: 1044, correction in query to get_accumulated_monthly_budget ( Budget test case failure) --- erpnext/accounts/doctype/budget/budget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/budget/budget.py b/erpnext/accounts/doctype/budget/budget.py index 96424fee1168..fc4ebf47f5d2 100644 --- a/erpnext/accounts/doctype/budget/budget.py +++ b/erpnext/accounts/doctype/budget/budget.py @@ -505,6 +505,7 @@ def get_accumulated_monthly_budget(monthly_distribution, posting_date, fiscal_ye .select(mdp.month, mdp.percentage_allocation) .where(md.fiscal_year == fiscal_year) .where(md.name == monthly_distribution) + .run(as_dict=True) ) for d in res: distribution.setdefault(d.month, d.percentage_allocation)