From 5948cd59099966ec387b13f430b6cf7bf6e1d9c3 Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Thu, 20 Jun 2013 00:32:51 -0530 Subject: [PATCH] [IMP] Minor improvements --- account_financial_report/report/parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index 15560cf8..3f7e24b9 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -654,8 +654,7 @@ class account_balance(report_sxw.rml_parse): } if form['columns'] == 'qtr': - pn = 1 - for p_id in p: + for pn in range(1,5): if form['inf_type'] == 'IS': d, c, b = map(z, [ @@ -675,8 +674,6 @@ class account_balance(report_sxw.rml_parse): 'bal%s' % pn: self.exchange(b), }) - pn += 1 - if form['inf_type'] == 'IS': d, c, b = map(z, [ all_account_period['all'][id]['debit'], all_account_period['all'][id]['credit'], all_account_period['all'][id]['balance']])