Merge pull request #174 from anandpdoshi/master

Fixed issue: If account of type "Bank or Cash" is not associated to a GL Entry, then it displays an alert in the email digest email body
This commit is contained in:
Anand Doshi 2011-12-22 04:06:35 -08:00
commit 6d0be02364

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 = []