~therp-nl/account-financial-report/6.1-analytic_entries_report_fiscalyear

« back to all changes in this revision

Viewing changes to account_financial_report/report/parser.py

  • Committer: Humberto Arocha
  • Date: 2012-08-15 16:17:51 UTC
  • Revision ID: humbertoarocha@gmail.com-20120815161751-jycalc6kwhhknr2g

[IMP] Se elimina clave acumulada de ids innnecesaria

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        (account info plus debit/credit/balance in the selected period
214
214
        and the full year)
215
215
        """
216
 
        
217
216
        account_obj = self.pool.get('account.account')
218
217
        period_obj = self.pool.get('account.period')
219
218
        fiscalyear_obj = self.pool.get('account.fiscalyear')
618
617
 
619
618
                        if form['columns'] == 'qtr':
620
619
                            tot_check = True
621
 
                            tot[res['id']] = True
 
620
                            #~ tot[res['id']] = True
622
621
                            tot_bal1 += res.get('bal1',0.0)
623
622
                            tot_bal2 += res.get('bal2',0.0)
624
623
                            tot_bal3 += res.get('bal3',0.0)
627
626
 
628
627
                        elif form['columns'] == 'thirteen':
629
628
                            tot_check = True
630
 
                            tot[res['id']] = True
 
629
                            #~ tot[res['id']] = True
631
630
                            tot_bal1 += res.get('bal1',0.0)
632
631
                            tot_bal2 += res.get('bal2',0.0)
633
632
                            tot_bal3 += res.get('bal3',0.0)
644
643
 
645
644
                        else:
646
645
                            tot_check = True
647
 
                            tot[res['id']] = True
 
646
                            #~ tot[res['id']] = True
648
647
                            tot_bin += res['balanceinit']
649
648
                            tot_deb += res['debit']
650
649
                            tot_crd += res['credit']