Merge pull request #29240 from frappe/mergify/bp/version-13-hotfix/pr-29193

fix: deferred report division by zero exception (backport #29193)
This commit is contained in:
Deepesh Garg
2022-01-13 12:56:27 +05:30
committed by GitHub

View File

@@ -121,6 +121,7 @@ class Deferred_Item(object):
""" """
simulate future posting by creating dummy gl entries. starts from the last posting date. simulate future posting by creating dummy gl entries. starts from the last posting date.
""" """
if self.service_start_date != self.service_end_date:
if add_days(self.last_entry_date, 1) < self.period_list[-1].to_date: if add_days(self.last_entry_date, 1) < self.period_list[-1].to_date:
self.estimate_for_period_list = get_period_list( self.estimate_for_period_list = get_period_list(
self.filters.from_fiscal_year, self.filters.from_fiscal_year,