Skip to content

Commit

Permalink
fix: 1044, correction in query to get_accumulated_monthly_budget ( Bu…
Browse files Browse the repository at this point in the history
…dget test case failure)
  • Loading branch information
anandk-spyke-o1 committed Jan 15, 2025
1 parent 7cf0582 commit 0e1ec7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/budget/budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e1ec7f

Please sign in to comment.