mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix - assigned Salary Structure query (#14965)
This commit is contained in:
committed by
Nabin Hait
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,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user