mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[Fix] Wrong value showing in the email digest (#11840)
This commit is contained in:
committed by
Nabin Hait
parent
3061fc92fd
commit
148fccd45a
@@ -232,7 +232,7 @@ class EmailDigest(Document):
|
|||||||
"new_quotations","pending_quotations","sales_order","purchase_order","pending_sales_orders","pending_purchase_orders",
|
"new_quotations","pending_quotations","sales_order","purchase_order","pending_sales_orders","pending_purchase_orders",
|
||||||
"invoiced_amount", "payables", "bank_balance", "credit_balance"):
|
"invoiced_amount", "payables", "bank_balance", "credit_balance"):
|
||||||
if self.get(key):
|
if self.get(key):
|
||||||
cache_key = "email_digest:card:{0}:{1}:{2}".format(self.company, self.frequency, key)
|
cache_key = "email_digest:card:{0}:{1}:{2}:{3}".format(self.company, self.frequency, key, self.from_date)
|
||||||
card = cache.get(cache_key)
|
card = cache.get(cache_key)
|
||||||
|
|
||||||
if card:
|
if card:
|
||||||
|
|||||||
Reference in New Issue
Block a user