From 22d898ac51f4fdd7d9290f8ae99a2857149a4684 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 24 Apr 2014 17:23:07 +0200 Subject: [PATCH] [FIX] Bug in the formula of the balance column in the Trial Balance XLS report when it is filtered by date --- .../report/trial_balance_xls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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 d6b7e3bf..9f510510 100644 --- a/account_financial_report_webkit_xls/report/trial_balance_xls.py +++ b/account_financial_report_webkit_xls/report/trial_balance_xls.py @@ -218,9 +218,9 @@ class trial_balance_xls(report_xls): ('account', account_span, 0, 'text', current_account.name), ] if _p.comparison_mode == 'no_comparison': - - debit_cell = rowcol_to_cell(row_pos, 3) - credit_cell = rowcol_to_cell(row_pos, 4) + + debit_cell = rowcol_to_cell(row_pos, 4) + credit_cell = rowcol_to_cell(row_pos, 5) bal_formula = debit_cell + '-' + credit_cell if _p.initial_balance_mode: