~openerp-venezuela/openerp-venezuela-localization/tecnolinux-reportes

« back to all changes in this revision

Viewing changes to budget_report_template/report/budget_report.py

  • Committer: Humberto Arocha [Vauxoo]
  • Author(s): humbertoarocha at gmail
  • Date: 2011-07-13 18:29:59 UTC
  • Revision ID: humbertoarocha@gmail.com-20110713182959-zc9ndr07uc1sl36y

[FIX] (budget_report_template) Se cambio el calculo de la columna V
del reporte, se estaba calculando la ejecucion en lugar del teorico

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
                'prac_amt1':self._get_amt(prog, income, date_from_1, date_to_1, bpost_lst,'_prac_amt'),
107
107
                'theo_amt2':self._get_amt(prog, income, date_from_2, date_to_2, bpost_lst,'_theo_amt'),
108
108
                'prac_amt2_a':self._get_amt(prog, income, date_from_2, date_limit, bpost_lst,'_prac_amt'),
109
 
                'prac_amt2_b':self._get_amt(prog, income, date_after, date_to_2, bpost_lst,'_prac_amt'),}
 
109
                'prac_amt2_b':self._get_amt(prog, income, date_after, date_to_2, bpost_lst,'_theo_amt'),}
110
110
                
111
111
            total['prac_amt2_c'] = total['theo_amt2'] and total['theo_amt1'] * 100/ total['theo_amt2'] - 100 or 0.0
112
112
            total['prac_amt2_d'] = total['prac_amt1'] and ( total['prac_amt2_a'] + total['prac_amt2_b'] )/(total['prac_amt1'] * 100)-100 or 0.0