From 145c3b939e52713ac85a87add41e33ca0dede423 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 Aug 2012 23:12:15 -0500 Subject: [PATCH] [FIX] Cuando se pide IS/1Columna Mostrar Dr-Cr, Cuando se pide BS/1Columna Mostrar Init+Dr-Cr. --- account_financial_report/report/parser.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index 7b2ff9fa..6ddd08be 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -369,9 +369,17 @@ class account_balance(report_sxw.rml_parse): 'debit': self.exchange(d), 'credit': self.exchange(c), 'ytd': self.exchange(d-c), - 'balance': self.exchange(b), }) + if form['inf_type'] == 'IS' and form['columns'] == 'one': + res.update({ + 'balance': self.exchange(d-c), + }) + else: + res.update({ + 'balance': self.exchange(b), + }) + elif form['columns'] == 'thirteen': pn = 1 for p_id in period_ids: