Browse Source

[FIX] Wrong Init values for view accounts

pull/7/merge
Humberto Arocha 12 years ago
parent
commit
a2cf3cc997
  1. 2
      account_financial_report/report/parser.py

2
account_financial_report/report/parser.py

@ -473,7 +473,7 @@ class account_balance(report_sxw.rml_parse):
#~ Not black #~ Not black
dict_not_black = {} dict_not_black = {}
for i in account_not_black: for i in account_not_black:
dict_not_black[i.id] = {'obj': i, 'debit': i.debit, 'credit':i.credit, 'balance': i.balance }
dict_not_black[i.id] = {'obj': i, 'debit': 0.0, 'credit':0.0, 'balance':0.0}
if form['inf_type'] == 'BS': if form['inf_type'] == 'BS':
dict_not_black.get(i.id)['balanceinit'] = 0.0 dict_not_black.get(i.id)['balanceinit'] = 0.0

Loading…
Cancel
Save