mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
fix: Add bundle items to PO only if the Product Bundle was selected from the SO
(cherry picked from commit 406278b5c1)
This commit is contained in:
@@ -971,6 +971,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