diff --git a/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql b/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql index 7487fb40105..762a94f7fbd 100644 --- a/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql +++ b/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql @@ -1 +1 @@ -SELECT DISTINCT `tabAttendance`.employee, `tabAttendance`.employee_name FROM `tabAttendance` WHERE `tabAttendance`.fiscal_year like '%(fiscal_year)s%%' AND `tabAttendance`.`company` like '%(company)s%%' AND `tabAttendance`.`employee` like '%(employee)s%%' \ No newline at end of file +SELECT DISTINCT `tabAttendance`.employee, `tabEmployee`.employee_name FROM `tabAttendance`, `tabEmployee` WHERE `tabEmployee`.name = `tabAttendance`.employee and `tabAttendance`.fiscal_year like '%(fiscal_year)s%%' AND `tabAttendance`.company like '%(company)s%%' AND `tabAttendance`.employee like '%(employee)s%%' \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 2b5a1213dc8..79aca492265 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -212,4 +212,5 @@ patch_list = [ "patches.march_2013.p02_get_global_default", "execute:webnotes.bean('Style Settings', 'Style Settings').save()", "patches.march_2013.p03_rename_blog_to_blog_post", + "execute:webnotes.reload_doc('hr', 'search_criteria', 'monthly_attendance_details')", ] \ No newline at end of file