fix - assigned Salary Structure query (#14965)
This commit is contained in:
parent
83dfc0a2b1
commit
68abe25371
@ -38,7 +38,7 @@ def get_assigned_salary_structure(employee, on_date):
|
|||||||
select salary_structure from `tabSalary Structure Assignment`
|
select salary_structure from `tabSalary Structure Assignment`
|
||||||
where employee=%(employee)s
|
where employee=%(employee)s
|
||||||
and docstatus = 1
|
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,
|
'employee': employee,
|
||||||
'on_date': on_date,
|
'on_date': on_date,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user