fix: Fix Product Bundle price calculation when there are multiple Product Bundles
(cherry picked from commit 0803f87660)
This commit is contained in:
@@ -128,7 +128,8 @@ def update_product_bundle_price(doc, parent_items):
|
||||
else:
|
||||
update_parent_item_price(doc, parent_items[parent_items_index][0], bundle_price)
|
||||
|
||||
bundle_price = 0
|
||||
bundle_item_rate = bundle_item.rate if bundle_item.rate else 0
|
||||
bundle_price = bundle_item.qty * bundle_item_rate
|
||||
parent_items_index += 1
|
||||
|
||||
# for the last product bundle
|
||||
|
||||
Reference in New Issue
Block a user