Skip to content

Commit

Permalink
fix: search for item price in stock UOM (backport #41075) (#41313)
Browse files Browse the repository at this point in the history
fix: search for item price in stock UOM (#41075)

(cherry picked from commit e4db056)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed May 3, 2024
1 parent 66b85c9 commit 112f96b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,12 @@ def insert_item_price(args):

item_price = frappe.db.get_value(
"Item Price",
{"item_code": args.item_code, "price_list": args.price_list, "currency": args.currency},
{
"item_code": args.item_code,
"price_list": args.price_list,
"currency": args.currency,
"uom": args.stock_uom,
},
["name", "price_list_rate"],
as_dict=1,
)
Expand Down

0 comments on commit 112f96b

Please sign in to comment.