mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
fix: Return if there are no Items
This commit is contained in:
@@ -109,6 +109,9 @@ def cleanup_packing_list(doc, parent_items):
|
|||||||
def update_product_bundle_price(doc, parent_items):
|
def update_product_bundle_price(doc, parent_items):
|
||||||
"""Updates the prices of Product Bundles based on the rates of the Items in the bundle."""
|
"""Updates the prices of Product Bundles based on the rates of the Items in the bundle."""
|
||||||
|
|
||||||
|
if not doc.get('items'):
|
||||||
|
return
|
||||||
|
|
||||||
parent_items_index = 0
|
parent_items_index = 0
|
||||||
bundle_price = 0
|
bundle_price = 0
|
||||||
parent_items_doctype = doc.items[0].doctype
|
parent_items_doctype = doc.items[0].doctype
|
||||||
|
|||||||
Reference in New Issue
Block a user