fix: local reference error in BOM (#38850)

fix: local reference error
This commit is contained in:
NIYAZ RAZAK 2023-12-20 12:04:38 +03:00 committed by GitHub
parent 9983283f95
commit ae353398d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1017,6 +1017,8 @@ def get_bom_item_rate(args, bom_doc):
item_doc = frappe.get_cached_doc("Item", args.get("item_code"))
price_list_data = get_price_list_rate(bom_args, item_doc)
rate = price_list_data.price_list_rate
elif bom_doc.rm_cost_as_per == "Manual":
return
return flt(rate)