Browse Source

[IMP] using debit and credit to get balance and reduce time consumption

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

9
account_financial_report/report/parser.py

@ -461,7 +461,14 @@ class account_balance(report_sxw.rml_parse):
#~ Black #~ Black
dict_black = {} dict_black = {}
for i in account_black: for i in account_black:
dict_black[i.id] = {'obj': i, 'debit': i.debit, 'credit':i.credit, 'balance': i.balance }
d = i.debit
c = i.credit
dict_black[i.id] = {
'obj': i,
'debit': d,
'credit': c,
'balance': d-c
}
if form['inf_type'] == 'BS': if form['inf_type'] == 'BS':
dict_black.get(i.id)['balanceinit'] = 0.0 dict_black.get(i.id)['balanceinit'] = 0.0

Loading…
Cancel
Save