fix: fiscal year using future date
(cherry picked from commit 728cc9f725264e057d9331362b256ea8d0f80b83)
This commit is contained in:
parent
ca2ad175d3
commit
b9a1fac7d8
@ -382,7 +382,7 @@ class EmailDigest(Document):
|
||||
"""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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user