email_digest updates
This commit is contained in:
parent
0b00b46a99
commit
c91e16dd1e
@ -461,13 +461,13 @@ class DocType:
|
|||||||
table_body = ""
|
table_body = ""
|
||||||
|
|
||||||
if isinstance(args['body'], basestring):
|
if isinstance(args['body'], basestring):
|
||||||
return """<p><b>%(head)s:</b> %(body)s</p>""" % args
|
return """<p>%(head)s: <span style='font-size: 110%%; font-weight: bold;'>%(body)s</span></p>""" % args
|
||||||
else:
|
else:
|
||||||
return """<p><b>%(head)s:</b> """ +\
|
return ("""<p>%(head)s:</p> """ % args) +\
|
||||||
"".join(map(lambda b: "<p>%s</p>" % b, args['body']))
|
"".join(map(lambda b: "<p style='margin-left: 17px;'>%s</p>" % b, args['body']))
|
||||||
|
|
||||||
|
|
||||||
currency_amount_str = "<span style='color: grey; font-size: 12px'>%s</span> %s"
|
currency_amount_str = "<span style='color: grey;'>%s</span> %s"
|
||||||
|
|
||||||
body_dict = {
|
body_dict = {
|
||||||
|
|
||||||
@ -552,13 +552,11 @@ class DocType:
|
|||||||
'bank_balance': {
|
'bank_balance': {
|
||||||
'table': result.get('bank_balance') and \
|
'table': result.get('bank_balance') and \
|
||||||
table({
|
table({
|
||||||
'head': 'Bank Balance',
|
'head': 'Bank / Cash Balance',
|
||||||
'body': [
|
'body': [(bank['name'] + ": <span style='font-size: 110%%; font-weight: bold;'>" \
|
||||||
[
|
+ currency_amount_str % \
|
||||||
"<span style='font-size: 16px; font-weight: normal'>%s</span>" \
|
(currency, fmt_money(bank.get('value'))) + '</span>')
|
||||||
% bank['name'],
|
for bank in (isinstance(result['bank_balance'], list) and \
|
||||||
currency_amount_str % (currency, fmt_money(bank.get('value')))
|
|
||||||
] for bank in (isinstance(result['bank_balance'], list) and \
|
|
||||||
result['bank_balance'] or \
|
result['bank_balance'] or \
|
||||||
[result['bank_balance']])
|
[result['bank_balance']])
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user