From 808396f254123335203c8cc9288142461901fbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faure-Lacroix?= Date: Tue, 3 Mar 2015 23:12:53 +0300 Subject: [PATCH] Sum on wrong column --- .../report/open_invoices_xls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_financial_report_webkit_xls/report/open_invoices_xls.py b/account_financial_report_webkit_xls/report/open_invoices_xls.py index 33200951..db85c55f 100644 --- a/account_financial_report_webkit_xls/report/open_invoices_xls.py +++ b/account_financial_report_webkit_xls/report/open_invoices_xls.py @@ -532,8 +532,8 @@ class open_invoices_xls(report_xls): credit_partner_total = 'SUM(' + credit_partner_start + \ ':' + credit_partner_end + ')' - bal_curr_start = rowcol_to_cell(row_start_partner, start_col + 5) - bal_curr_end = rowcol_to_cell(row_position - 1, start_col + 5) + bal_curr_start = rowcol_to_cell(row_start_partner, start_col + 6) + bal_curr_end = rowcol_to_cell(row_position - 1, start_col + 6) cumul_balance_curr = 'SUM(' + bal_curr_start + ':' + bal_curr_end + ')' bal_partner_debit = rowcol_to_cell(row_position, start_col + 3)