fix: Fix Product Bundle price calculation when there are multiple Product Bundles

(cherry picked from commit 0803f87660)
This commit is contained in:
GangaManoj
2021-11-24 06:07:58 +05:30
committed by mergify-bot
parent e8e0faa23a
commit e18542ef6a

View File

@@ -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