Skip to content

Commit dadd4b1

Browse files
committed
fix(stock): use purchase UOM in Supplier Quotation items
1 parent c4b135e commit dadd4b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

erpnext/stock/get_item_details.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,10 @@ def get_basic_details(args, item, overwrite_warehouse=True):
421421
if not args.get("uom"):
422422
if args.get("doctype") in sales_doctypes:
423423
args.uom = item.sales_uom if item.sales_uom else item.stock_uom
424-
elif (args.get("doctype") in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) or (
425-
args.get("doctype") == "Material Request" and args.get("material_request_type") == "Purchase"
426-
):
424+
elif (
425+
args.get("doctype")
426+
in ["Purchase Order", "Purchase Receipt", "Purchase Invoice", "Supplier Quotation"]
427+
) or (args.get("doctype") == "Material Request" and args.get("material_request_type") == "Purchase"):
427428
args.uom = item.purchase_uom if item.purchase_uom else item.stock_uom
428429
else:
429430
args.uom = item.stock_uom

0 commit comments

Comments
 (0)