fix: Wrong argument fix in email digest filters

This commit is contained in:
deepeshgarg007 2019-01-23 19:11:24 +05:30
parent e415cce1a9
commit 0c38cf06a5

View File

@ -524,7 +524,7 @@ class EmailDigest(Document):
filters = { filters = {
"root_type": "Asset", "root_type": "Asset",
"account_type": "Bank", "account_type": "Bank",
"date": self.future_to_date, "report_date": self.future_to_date,
"company": self.company "company": self.company
} }
label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters) label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters)
@ -532,7 +532,7 @@ class EmailDigest(Document):
filters = { filters = {
"root_type": "Liability", "root_type": "Liability",
"account_type": "Bank", "account_type": "Bank",
"to_date": self.future_to_date, "report_date": self.future_to_date,
"company": self.company "company": self.company
} }
label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters) label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters)