Skip to content

Commit

Permalink
fix: set stock UOM in args to ensure item price is fetched
Browse files Browse the repository at this point in the history
(cherry picked from commit 57038c3)
  • Loading branch information
sagarvora authored and mergify[bot] committed Nov 12, 2022
1 parent a0cab4c commit bd2242b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ def get_basic_details(args, item, overwrite_warehouse=True):
else:
args.uom = item.stock_uom

# Set stock UOM in args, so that it can be used while fetching item price
args.stock_uom = item.stock_uom

if args.get("batch_no") and item.name != frappe.get_cached_value(
"Batch", args.get("batch_no"), "item"
):
Expand Down

0 comments on commit bd2242b

Please sign in to comment.