brotherton-erpnext/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql

1 line
314 B
MySQL
Raw Normal View History

2013-03-12 12:51:24 +00:00
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%%'