Browse Source

[FIX] Avoiding the Total appears,


			
			
				6.0
			
			
		
Humberto Arocha 13 years ago
parent
commit
137499037b
  1. 4
      account_financial_report/report/account_balance.py
  2. 4
      account_financial_report/report/account_balance_2_cols.py
  3. 5
      account_financial_report/report/account_balance_4_cols.py

4
account_financial_report/report/account_balance.py

@ -154,6 +154,7 @@ class account_balance(report_sxw.rml_parse):
else:
self.to_currency_id = form['currency_id'] and type(form['currency_id']) in (list, tuple) and form['currency_id'][0] or form['currency_id']
tot_check = False
tot_eje = 0.0
if form.has_key('account_list') and form['account_list']:
@ -312,9 +313,10 @@ class account_balance(report_sxw.rml_parse):
# Include all accounts
result_acc.append(res)
if form['tot_check'] and res['type'] == 'view' and res['level'] == 1 and (res['id'] not in tot):
tot_check = True
tot[res['id']] = True
tot_eje += res['balance']
if form['tot_check']:
if tot_check:
str_label = form['lab_str']
res2 = {
'type' : 'view',

4
account_financial_report/report/account_balance_2_cols.py

@ -158,6 +158,7 @@ class account_balance(report_sxw.rml_parse):
else:
self.to_currency_id = form['currency_id'] and type(form['currency_id']) in (list, tuple) and form['currency_id'][0] or form['currency_id']
tot_check = False
tot_bin = 0.0
tot_deb = 0.0
tot_crd = 0.0
@ -331,13 +332,14 @@ class account_balance(report_sxw.rml_parse):
# Include all accounts
result_acc.append(res)
if form['tot_check'] and res['type'] == 'view' and res['level'] == 1 and (res['id'] not in tot):
tot_check = True
tot[res['id']] = True
tot_bin += res['balanceinit']
tot_deb += res['debit']
tot_crd += res['credit']
tot_eje += res['balance']
if form['tot_check']:
if tot_check:
str_label = form['lab_str']
res2 = {
'type' : 'view',

5
account_financial_report/report/account_balance_4_cols.py

@ -161,7 +161,7 @@ class account_balance(report_sxw.rml_parse):
self.to_currency_id = self.from_currency_id
else:
self.to_currency_id = form['currency_id'] and type(form['currency_id']) in (list, tuple) and form['currency_id'][0] or form['currency_id']
tot_check = False
tot_bin = 0.0
tot_deb = 0.0
tot_crd = 0.0
@ -348,6 +348,7 @@ class account_balance(report_sxw.rml_parse):
# Include all accounts
result_acc.append(res)
if form['tot_check'] and res['type'] == 'view' and res['level'] == 1 and (res['id'] not in tot):
tot_check = True
tot[res['id']] = True
tot_bin += res['balanceinit']
tot_deb += res['debit']
@ -355,7 +356,7 @@ class account_balance(report_sxw.rml_parse):
tot_eje += res['balance']
#if (form['tot_check'] and res['type']=='view' and res['level']==1 and (res['id'] not in tot)):
if form['tot_check']:
if tot_check:
str_label = form['lab_str']
res2 = {
'type' : 'view',

Loading…
Cancel
Save