- Added multiple barcode feature per item

This commit is contained in:
Giovanni
2017-12-10 17:27:09 +01:00
parent d10014bdeb
commit 2144e02d3c
10 changed files with 176 additions and 103 deletions

View File

@@ -165,8 +165,8 @@ def item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=Fals
and (tabItem.`{key}` LIKE %(txt)s
or tabItem.item_group LIKE %(txt)s
or tabItem.item_name LIKE %(txt)s
or tabItem.barcode LIKE %(txt)s
or tabItem.description LIKE %(txt)s)
or tabItem.name IN (select parent from `tabItem Barcode` where barcode LIKE %(txt)s)
{fcond} {mcond}
order by
if(locate(%(_txt)s, name), locate(%(_txt)s, name), 99999),