~juan-munoz-clearcorp/openerp-hr-payroll-cr/hr-payroll-cr-fixes

« back to all changes in this revision

Viewing changes to hr_payroll_cr/hr_payroll_cr.py

  • Committer: Juan Felipe Muñoz
  • Date: 2012-02-02 17:47:11 UTC
  • Revision ID: juan.munoz@clearcorp.co.cr-20120202174711-ffkzltxti93z9qzl
[FIX] create incapacity days

Show diffs side-by-side

added added

removed removed

Lines of Context:
467
467
                        payment_id = None
468
468
                        for ipd in inc_per_day:
469
469
                                ipd_fields = self.pool.get('hr_payroll_cr.incapacity_period_per_day').browse(cr, uid, ipd)
470
 
                                if ipd_fields.date <= date and not ipd_fields.paid and ipd_fields.reflectible:
 
470
                                if ipd_fields.date <= date and not ipd_fields.paid """and ipd_fields.reflectible""":
471
471
                                        if ipd_fields.percent:
472
472
                                                perc = ipd_fields.amount / 100
473
473
                                                amount_reduction = perc * contract_per_day