[FIX] afr_webkit_xls: incorrect debit/credit in xls trial balance

pull/35/head
Stéphane Bidoul 2014-11-26 11:16:55 +01:00
parent 8a0501c16c
commit 641b2cf400
1 changed files with 6 additions and 4 deletions

View File

@ -282,17 +282,19 @@ class trial_balance_xls(report_xls):
None, None,
cell_style_decimal)] cell_style_decimal)]
c_specs += [ c_specs += [
('debit', 1, 0, 'number', current_account.debit, ('debit', 1, 0, 'number',
_p['debit_accounts'][current_account.id],
None, cell_style_decimal), None, cell_style_decimal),
('credit', 1, 0, 'number', current_account.credit, ('credit', 1, 0, 'number',
_p['credit_accounts'][current_account.id],
None, cell_style_decimal), None, cell_style_decimal),
] ]
c_specs += [('balance', 1, 0, 'number', None, c_specs += [('balance', 1, 0, 'number', None,
bal_formula, cell_style_decimal)] bal_formula, cell_style_decimal)]
else: else:
c_specs += [('balance', 1, 0, 'number', c_specs += [('balance', 1, 0, 'number',
current_account.balance, None, _p['balance_accounts'][current_account.id],
cell_style_decimal)] None, cell_style_decimal)]
if _p.comparison_mode in ('single', 'multiple'): if _p.comparison_mode in ('single', 'multiple'):
c = 1 c = 1