item search by item_name by default
This commit is contained in:
parent
bab018b759
commit
6ce8af3b67
@ -133,10 +133,8 @@ erpnext.queries.item = function(opts) {
|
||||
WHERE tabItem.docstatus!=2 \
|
||||
AND (ifnull(`tabItem`.`end_of_life`,"") in ("", "0000-00-00") \
|
||||
OR `tabItem`.`end_of_life` > NOW()) \
|
||||
AND tabItem.%(key)s LIKE "%s" ' + (conditions
|
||||
? (" AND " + conditions.join(" AND "))
|
||||
: "")
|
||||
+ " LIMIT 50"
|
||||
AND (tabItem.%(key)s LIKE \"%s\" OR tabItem.item_name LIKE \"%%%s\")' +
|
||||
(conditions ? (" AND " + conditions.join(" AND ")) : "") + " LIMIT 50"
|
||||
}
|
||||
|
||||
erpnext.queries.item_std = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user