mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
change project get_query to include projects with status other than Completed and Cancelled
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
cur_frm.fields_dict['project'].get_query = function(doc,cdt,cdn){
|
||||
var cond='';
|
||||
if(doc.customer) cond = 'ifnull(`tabProject`.customer, "") = "'+doc.customer+'" AND';
|
||||
return repl('SELECT distinct `tabProject`.`name` FROM `tabProject` WHERE %(cond)s `tabProject`.`name` LIKE "%s" ORDER BY `tabProject`.`name` ASC LIMIT 50', {cond:cond});
|
||||
return repl('SELECT distinct `tabProject`.`name` FROM `tabProject` \
|
||||
WHERE %(cond)s `tabProject`.`name` LIKE "%s" \
|
||||
ORDER BY `tabProject`.`name` ASC LIMIT 50', {cond:cond});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user