Skip to content

Commit

Permalink
Merge 5454c09 into ece7212
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumar Aberer committed Jun 21, 2017
2 parents ece7212 + 5454c09 commit 8e266fe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -355,7 +355,7 @@ def print_lines(self, row_position, account, line, _p, data, line_number):
cumul_balance, style_line_decimal)]

if _p.amount_currency(data):
if account.currency_id:
if line.get('amount_currency', 0.0) != 0.0:
c_specs += [
('curramount', 1, 0, 'number',
line.get('amount_currency') or 0.0, None,
Expand Down Expand Up @@ -435,7 +435,7 @@ def print_group_lines(self, row_position, account, line, _p, line_number):
style_line_decimal),
('cumul', 1, 0, 'number', None, cumul_balance, style_line_decimal),
]
if account.currency_id:
if line.get('amount_currency', 0.0) != 0:
c_specs += [
('curramount', 1, 0, 'number', line.get('amount_currency') or
0.0, None, style_line_decimal),
Expand Down

0 comments on commit 8e266fe

Please sign in to comment.