mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: Only update Product Bundle prices if 'Calculate Product Bundle Price based on Child Items' Rates' is enabled
This commit is contained in:
@@ -85,7 +85,9 @@ def make_packing_list(doc):
|
|||||||
parent_items.append([d.item_code, d.name])
|
parent_items.append([d.item_code, d.name])
|
||||||
|
|
||||||
cleanup_packing_list(doc, parent_items)
|
cleanup_packing_list(doc, parent_items)
|
||||||
update_product_bundle_price(doc, parent_items)
|
|
||||||
|
if frappe.db.get_single_value("Selling Settings", "editable_bundle_item_rates"):
|
||||||
|
update_product_bundle_price(doc, parent_items)
|
||||||
|
|
||||||
def cleanup_packing_list(doc, parent_items):
|
def cleanup_packing_list(doc, parent_items):
|
||||||
"""Remove all those child items which are no longer present in main item table"""
|
"""Remove all those child items which are no longer present in main item table"""
|
||||||
|
|||||||
Reference in New Issue
Block a user