From 0c38cf06a52b16cab585067d11cde63cf9a13c73 Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Wed, 23 Jan 2019 19:11:24 +0530 Subject: [PATCH] fix: Wrong argument fix in email digest filters --- erpnext/setup/doctype/email_digest/email_digest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/email_digest/email_digest.py b/erpnext/setup/doctype/email_digest/email_digest.py index c5c91d1b45..1de5ccb142 100644 --- a/erpnext/setup/doctype/email_digest/email_digest.py +++ b/erpnext/setup/doctype/email_digest/email_digest.py @@ -524,7 +524,7 @@ class EmailDigest(Document): filters = { "root_type": "Asset", "account_type": "Bank", - "date": self.future_to_date, + "report_date": self.future_to_date, "company": self.company } label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters) @@ -532,7 +532,7 @@ class EmailDigest(Document): filters = { "root_type": "Liability", "account_type": "Bank", - "to_date": self.future_to_date, + "report_date": self.future_to_date, "company": self.company } label = get_link_to_report('Account Balance', label=self.meta.get_label(fieldname), filters=filters)