From 68abe25371c7c84f07cd19471cb76f8c24746020 Mon Sep 17 00:00:00 2001 From: Ranjith Kurungadam Date: Mon, 23 Jul 2018 11:31:46 +0530 Subject: [PATCH] fix - assigned Salary Structure query (#14965) --- .../salary_structure_assignment/salary_structure_assignment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/salary_structure_assignment/salary_structure_assignment.py b/erpnext/hr/doctype/salary_structure_assignment/salary_structure_assignment.py index 210f75dc63..cf0906687c 100644 --- a/erpnext/hr/doctype/salary_structure_assignment/salary_structure_assignment.py +++ b/erpnext/hr/doctype/salary_structure_assignment/salary_structure_assignment.py @@ -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, })