[FIX] account_financial_report_webkit_xls: Bug in the formula of the balance column in the Trial Balance XLS report when it is filtered by date

pull/7/merge
unknown 2014-04-25 16:47:53 +02:00 committed by Pedro M. Baeza
commit 376146e083
1 changed files with 3 additions and 3 deletions

View File

@ -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: