mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[fix] packing slip
This commit is contained in:
@@ -162,8 +162,7 @@ def item_details(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
from erpnext.controllers.queries import get_match_cond
|
from erpnext.controllers.queries import get_match_cond
|
||||||
return frappe.db.sql("""select name, item_name, description from `tabItem`
|
return frappe.db.sql("""select name, item_name, description from `tabItem`
|
||||||
where name in ( select item_code FROM `tabDelivery Note Item`
|
where name in ( select item_code FROM `tabDelivery Note Item`
|
||||||
where parent= %s
|
where parent= %s)
|
||||||
and ifnull(qty, 0) > ifnull(packed_qty, 0))
|
|
||||||
and %s like "%s" %s
|
and %s like "%s" %s
|
||||||
limit %s, %s """ % ("%s", searchfield, "%s",
|
limit %s, %s """ % ("%s", searchfield, "%s",
|
||||||
get_match_cond(doctype), "%s", "%s"),
|
get_match_cond(doctype), "%s", "%s"),
|
||||||
|
|||||||
Reference in New Issue
Block a user