fix in email digest

This commit is contained in:
Anand Doshi 2012-05-03 12:57:56 +05:30
parent 996abdd155
commit 57bc3f424f

View File

@ -580,7 +580,9 @@ class DocType:
"<span style='font-size: 16px; font-weight: normal'>%s</span>" \ "<span style='font-size: 16px; font-weight: normal'>%s</span>" \
% bank['name'], % bank['name'],
currency_amount_str % (currency, fmt_money(bank.get('value'))) currency_amount_str % (currency, fmt_money(bank.get('value')))
] for bank in result['bank_balance'] ] for bank in (isinstance(result['bank_balance'], list) and \
result['bank_balance'] or \
[result['bank_balance']])
] ]
}), }),
'idx': 400 'idx': 400