[IMP]l10n_in_hr_payroll:query updated

bzr revid: kbh@tinyerp.com-20120719111930-gvuhcf6n5qkg9zk3
This commit is contained in:
Khushboo Bhatt (Open ERP) 2012-07-19 16:49:30 +05:30
parent df4139ff08
commit 2e777fa99e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class report_salary_rule_bymonth(report_sxw.rml_parse):
left join hr_payslip as p on pl.slip_id = p.id \
left join hr_employee as emp on emp.id = p.employee_id \
left join resource_resource as r on r.id = emp.resource_id \
where (pl.code = 'NET') and p.employee_id = '''+str(emp_id.id)+''' \
where pl.code = 'NET' and p.state = 'done' and p.employee_id = '''+str(emp_id.id)+''' \
and to_char(date_to,'mm-yyyy') like '%'''+mnth+'''%'
group by r.name, p.date_to,emp.id''')
sal = self.cr.fetchall()