fix: ignore Non-Stock Item
mapping in Pick List
This commit is contained in:
parent
cb19ebcd85
commit
03d7742737
@ -265,6 +265,10 @@ class PickList(Document):
|
|||||||
for item in locations:
|
for item in locations:
|
||||||
if not item.item_code:
|
if not item.item_code:
|
||||||
frappe.throw("Row #{0}: Item Code is Mandatory".format(item.idx))
|
frappe.throw("Row #{0}: Item Code is Mandatory".format(item.idx))
|
||||||
|
if not cint(
|
||||||
|
frappe.get_cached_value("Item", item.item_code, "is_stock_item")
|
||||||
|
) and not frappe.db.exists("Product Bundle", {"new_item_code": item.item_code}):
|
||||||
|
continue
|
||||||
item_code = item.item_code
|
item_code = item.item_code
|
||||||
reference = item.sales_order_item or item.material_request_item
|
reference = item.sales_order_item or item.material_request_item
|
||||||
key = (item_code, item.uom, item.warehouse, item.batch_no, reference)
|
key = (item_code, item.uom, item.warehouse, item.batch_no, reference)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user