fix: fiscal year using future date
This commit is contained in:
parent
52305e3000
commit
728cc9f725
@ -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