Fixed issue: If account of type "Bank or Cash" is not associated to any GL Entry, then it displays an alert in the email digest email body

This commit is contained in:
Anand Doshi 2011-12-22 17:34:11 +05:30
parent 7792d08408
commit 94a18109d7

View File

@ -660,12 +660,19 @@ class DocType:
if self.doc.fields[k]:
if k in result:
table_list.append(body_dict[k]['table'])
elif k in ['collections', 'payments', 'bank_balance']:
elif k in ['collections', 'payments']:
table_list.append(\
"<div style='font-size: 16px; color: grey'>[" + \
k.capitalize() + \
"]<br />Missing: Ledger of type 'Bank or Cash'\
"]<br />Missing: Account of type 'Bank or Cash'\
</div>")
elif k=='bank_balance':
table_list.append(\
"<div style='font-size: 16px; color: grey'>[" + \
"Bank Balance" + \
"]<br />Alert: GL Entry not found for Account of type 'Bank or Cash'\
</div>")
i = 0
result = []