[item variants] make variants, bom updates

This commit is contained in:
Rushabh Mehta
2014-09-30 17:41:33 +05:30
parent 70aa8933b1
commit ef276045c4
13 changed files with 155 additions and 83 deletions

View File

@@ -165,6 +165,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
concat(substr(tabItem.description, 1, 40), "..."), description) as decription
from tabItem
where tabItem.docstatus < 2
and ifnull(tabItem.has_variants, 0)=0
and (tabItem.end_of_life > %(today)s or ifnull(tabItem.end_of_life, '0000-00-00')='0000-00-00')
and (tabItem.`{key}` LIKE %(txt)s
or tabItem.item_name LIKE %(txt)s