Browse Source

[FIX] Added validation in parser.

6.0
Vauxoo 13 years ago
committed by Nhomar Hernandez nhomar@vauxoo.com
parent
commit
a75bc2da0e
  1. 3
      account_financial_report/report/account_balance_4_cols.py

3
account_financial_report/report/account_balance_4_cols.py

@ -82,6 +82,7 @@ class account_balance(report_sxw.rml_parse):
'edogp': 'Estado de Ganancias y Perdidas', 'edogp': 'Estado de Ganancias y Perdidas',
'bml': 'Libro Mayor Legal' 'bml': 'Libro Mayor Legal'
} }
print "Hola Parserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr"
return inf_type[form['inf_type']] return inf_type[form['inf_type']]
def get_month(self, form): def get_month(self, form):
@ -338,7 +339,7 @@ class account_balance(report_sxw.rml_parse):
tot_crd += res['credit'] tot_crd += res['credit']
tot_eje += res['balance'] tot_eje += res['balance']
if form['tot_check']:
if (form['tot_check'] and res['type']=='view' and res['level']==1 and (res['id'] not in tot)):
str_label = form['lab_str'] str_label = form['lab_str']
res2 = { res2 = {
'type' : 'view', 'type' : 'view',

Loading…
Cancel
Save