brotherton-erpnext/hr/search_criteria/monthly_attendance_details/monthly_attendance_details.sql
2013-03-12 18:21:24 +05:30

1 line
314 B
SQL

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%%'