mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 01:14:46 +00:00
item query changes in stock entry
This commit is contained in:
@@ -111,7 +111,7 @@ fld.get_query = function(doc, cdt, cdn) {
|
|||||||
+'AND ifnull(`tabBin`.`actual_qty`,0) > 0 '
|
+'AND ifnull(`tabBin`.`actual_qty`,0) > 0 '
|
||||||
+'AND tabBin.warehouse="'+ d.s_warehouse +'" '
|
+'AND tabBin.warehouse="'+ d.s_warehouse +'" '
|
||||||
+'AND tabItem.docstatus < 2 '
|
+'AND tabItem.docstatus < 2 '
|
||||||
+'(ifnull(`tabItem`.`end_of_life`,"") = "" OR `tabItem`.`end_of_life` > NOW() OR `tabItem`.`end_of_life`="0000-00-00")'
|
+'AND (ifnull(`tabItem`.`end_of_life`,"") = "" OR `tabItem`.`end_of_life` > NOW() OR `tabItem`.`end_of_life`="0000-00-00") '
|
||||||
+'AND tabItem.%(key)s LIKE "%s" '
|
+'AND tabItem.%(key)s LIKE "%s" '
|
||||||
+'ORDER BY tabItem.name ASC '
|
+'ORDER BY tabItem.name ASC '
|
||||||
+'LIMIT 50'
|
+'LIMIT 50'
|
||||||
@@ -119,7 +119,7 @@ fld.get_query = function(doc, cdt, cdn) {
|
|||||||
return 'SELECT tabItem.name, tabItem.description '
|
return 'SELECT tabItem.name, tabItem.description '
|
||||||
+'FROM tabItem '
|
+'FROM tabItem '
|
||||||
+'WHERE tabItem.docstatus < 2 '
|
+'WHERE tabItem.docstatus < 2 '
|
||||||
+'(ifnull(`tabItem`.`end_of_life`,"") = "" OR `tabItem`.`end_of_life` > NOW() OR `tabItem`.`end_of_life`="0000-00-00")'
|
+'AND (ifnull(`tabItem`.`end_of_life`,"") = "" OR `tabItem`.`end_of_life` > NOW() OR `tabItem`.`end_of_life`="0000-00-00") '
|
||||||
+'AND tabItem.%(key)s LIKE "%s" '
|
+'AND tabItem.%(key)s LIKE "%s" '
|
||||||
+'ORDER BY tabItem.name ASC '
|
+'ORDER BY tabItem.name ASC '
|
||||||
+'LIMIT 50'
|
+'LIMIT 50'
|
||||||
|
|||||||
Reference in New Issue
Block a user