[FIX] Cuando se pide IS/1Columna Mostrar Dr-Cr,

Cuando se pide BS/1Columna Mostrar Init+Dr-Cr.
6.0
unknown 2012-08-06 23:12:15 -05:00
parent d91d267179
commit 145c3b939e
1 changed files with 9 additions and 1 deletions

View File

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