Skip to content

Commit

Permalink
fix: local reference error in BOM (#38850)
Browse files Browse the repository at this point in the history
fix: local reference error
  • Loading branch information
niyazrazak authored Dec 20, 2023
1 parent 9983283 commit ae35339
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/manufacturing/doctype/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ae35339

Please sign in to comment.