mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
show employee name in employee link field in attendance form
This commit is contained in:
@@ -26,5 +26,5 @@ cur_frm.cscript.employee = function(doc,cdt,cdn){
|
|||||||
//Employee
|
//Employee
|
||||||
//-----------------------------
|
//-----------------------------
|
||||||
cur_frm.fields_dict['employee'].get_query = function(doc,cdt,cdn) {
|
cur_frm.fields_dict['employee'].get_query = function(doc,cdt,cdn) {
|
||||||
return 'SELECT `tabEmployee`.`name` FROM `tabEmployee` WHERE `tabEmployee`.status = "Active" AND `tabEmployee`.`docstatus`!= 2 AND `tabEmployee`.%(key)s LIKE "%s" ORDER BY `tabEmployee`.`name` ASC LIMIT 50';
|
return 'SELECT `tabEmployee`.`name`, `tabEmployee`.`employee_name` FROM `tabEmployee` WHERE `tabEmployee`.status = "Active" AND `tabEmployee`.`docstatus`!= 2 AND (`tabEmployee`.`employee_name` LIKE "%s" OR `tabEmployee`.`%(key)s` LIKE "%s") ORDER BY `tabEmployee`.`name` ASC LIMIT 50';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user