Skip to content

Commit

Permalink
fix: fiscal year using future date
Browse files Browse the repository at this point in the history
(cherry picked from commit 728cc9f)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 24, 2023
1 parent ca2ad17 commit b9a1fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/setup/doctype/email_digest/email_digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_year_to_date_balance(self, root_type, fieldname):
"""Get income to date"""
balance = 0.0
count = 0
fy_start_date = get_fiscal_year().get("year_start_date")
fy_start_date = get_fiscal_year(self.future_to_date)[1]

for account in self.get_root_type_accounts(root_type):
balance += get_balance_on(account, date=self.future_to_date, start_date=fy_start_date)
Expand Down

0 comments on commit b9a1fac

Please sign in to comment.