fix: set stock UOM in args to ensure item price is fetched
(cherry picked from commit 57038c3969)
This commit is contained in:
@@ -315,6 +315,9 @@ def get_basic_details(args, item, overwrite_warehouse=True):
|
|||||||
else:
|
else:
|
||||||
args.uom = item.stock_uom
|
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(
|
if args.get("batch_no") and item.name != frappe.get_cached_value(
|
||||||
"Batch", args.get("batch_no"), "item"
|
"Batch", args.get("batch_no"), "item"
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user