mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
added customer get_query to allow search based on customer name. also don't show name again if id naming is based on customer name and not series
This commit is contained in:
@@ -44,4 +44,7 @@ cur_frm.fields_dict['timesheet_details'].grid.get_field("task_name").get_query =
|
||||
if(d.project_name) cond = 'ifnull(`tabTask`.project, "") = "'+d.project_name+'" AND';
|
||||
|
||||
return repl('SELECT distinct `tabTask`.`subject` FROM `tabTask` WHERE %(cond)s `tabTask`.`subject` LIKE "%s" ORDER BY `tabTask`.`subject` ASC LIMIT 50', {cond:cond});
|
||||
}
|
||||
}
|
||||
|
||||
cur_frm.fields_dict.timesheet_details.grid.get_field("customer_name").get_query =
|
||||
erpnext.utils.customer_query;
|
||||
Reference in New Issue
Block a user