Merge pull request #32913 from resilient-tech/fix-item-price-fetch

fix: set stock UOM in args to ensure item price is fetched
This commit is contained in:
Sagar Sharma 2022-11-12 10:08:44 +05:30 committed by GitHub
commit 4e9a63423f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,6 +330,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"
):