~luc-demeyer/account-financial-report/7.0-account_journal_report_xls-namespace-extra

« back to all changes in this revision

Viewing changes to account_financial_report_webkit_xls/report/trial_balance_xls.py

  • Committer: Alexis de Lattre
  • Date: 2014-04-24 13:31:26 UTC
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: alexis@via.ecp.fr-20140424133126-sadbopw1u8n4lhko
[FIX] Bug in the formula of the balance column in the Trial Balance XLS report when it is filtered by date

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
                ('account', account_span, 0, 'text', current_account.name),
219
219
            ]
220
220
            if _p.comparison_mode == 'no_comparison':
221
 
                
222
 
                debit_cell = rowcol_to_cell(row_pos, 3)                
223
 
                credit_cell = rowcol_to_cell(row_pos, 4)
 
221
 
 
222
                debit_cell = rowcol_to_cell(row_pos, 4)
 
223
                credit_cell = rowcol_to_cell(row_pos, 5)
224
224
                bal_formula = debit_cell + '-' + credit_cell
225
225
                
226
226
                if _p.initial_balance_mode: