Merge pull request #33710 from openrefactory/patch-2

Removed an unnecessary check in code which always evaluates to true
This commit is contained in:
ruthra kumar
2023-01-21 09:41:04 +05:30
committed by GitHub

View File

@@ -378,7 +378,6 @@ class Deferred_Revenue_and_Expense_Report(object):
ret += [{}] ret += [{}]
# add total row # add total row
if ret is not []:
if self.filters.type == "Revenue": if self.filters.type == "Revenue":
total_row = frappe._dict({"name": "Total Deferred Income"}) total_row = frappe._dict({"name": "Total Deferred Income"})
elif self.filters.type == "Expense": elif self.filters.type == "Expense":