From 641b2cf40041c1d32e8824e6f58de7113ae64c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 26 Nov 2014 11:16:55 +0100 Subject: [PATCH] [FIX] afr_webkit_xls: incorrect debit/credit in xls trial balance --- .../report/trial_balance_xls.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/account_financial_report_webkit_xls/report/trial_balance_xls.py b/account_financial_report_webkit_xls/report/trial_balance_xls.py index f52d9258..b82fba80 100644 --- a/account_financial_report_webkit_xls/report/trial_balance_xls.py +++ b/account_financial_report_webkit_xls/report/trial_balance_xls.py @@ -282,17 +282,19 @@ class trial_balance_xls(report_xls): None, cell_style_decimal)] c_specs += [ - ('debit', 1, 0, 'number', current_account.debit, + ('debit', 1, 0, 'number', + _p['debit_accounts'][current_account.id], 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), ] c_specs += [('balance', 1, 0, 'number', None, bal_formula, cell_style_decimal)] else: c_specs += [('balance', 1, 0, 'number', - current_account.balance, None, - cell_style_decimal)] + _p['balance_accounts'][current_account.id], + None, cell_style_decimal)] if _p.comparison_mode in ('single', 'multiple'): c = 1