fix: local reference error in BOM (backport #38850) (#38877)

fix: local reference error in BOM (#38850)

fix: local reference error
(cherry picked from commit ae353398d96746e9e89640b586d1bbd6afbbce77)

Co-authored-by: NIYAZ RAZAK <76736615+niyazrazak@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2023-12-20 16:34:27 +05:30 committed by GitHub
parent 648f275797
commit e3be9c1da4
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)