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

This commit is contained in:
GangaManoj 2021-11-24 06:07:58 +05:30
parent 406278b5c1
commit 0803f87660

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