fix - assigned Salary Structure query (#14965)

This commit is contained in:
Ranjith Kurungadam 2018-07-23 11:31:46 +05:30 committed by Nabin Hait
parent 83dfc0a2b1
commit 68abe25371

View File

@ -38,7 +38,7 @@ def get_assigned_salary_structure(employee, on_date):
select salary_structure from `tabSalary Structure Assignment`
where employee=%(employee)s
and docstatus = 1
and %(on_date)s > from_date order by from_date desc limit 1""", {
and %(on_date)s >= from_date order by from_date desc limit 1""", {
'employee': employee,
'on_date': on_date,
})