mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 23:48:38 +00:00
fix: map pick list invoice items only
This commit is contained in:
@@ -1468,6 +1468,9 @@ def create_delivery_from_so(pick_list, sales_order_list, target, target_doc=None
|
||||
if not target_doc:
|
||||
return
|
||||
|
||||
if target == "Sales Invoice":
|
||||
target_doc.set("items", [])
|
||||
|
||||
for so in sales_order_list:
|
||||
map_pl_locations(pick_list, item_table_mapper, target_doc, so)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user