mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: Add bundle items to PO only if the Product Bundle was selected from the SO
This commit is contained in:
@@ -925,6 +925,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
|||||||
"supplier",
|
"supplier",
|
||||||
"pricing_rules"
|
"pricing_rules"
|
||||||
],
|
],
|
||||||
|
"condition": lambda doc: doc.parent_item in items_to_map
|
||||||
}
|
}
|
||||||
}, target_doc, set_missing_values)
|
}, target_doc, set_missing_values)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user