mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
fix(stock): use purchase UOM in Supplier Quotation items
This commit is contained in:
@@ -421,9 +421,10 @@ def get_basic_details(args, item, overwrite_warehouse=True):
|
||||
if not args.get("uom"):
|
||||
if args.get("doctype") in sales_doctypes:
|
||||
args.uom = item.sales_uom if item.sales_uom else item.stock_uom
|
||||
elif (args.get("doctype") in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) or (
|
||||
args.get("doctype") == "Material Request" and args.get("material_request_type") == "Purchase"
|
||||
):
|
||||
elif (
|
||||
args.get("doctype")
|
||||
in ["Purchase Order", "Purchase Receipt", "Purchase Invoice", "Supplier Quotation"]
|
||||
) or (args.get("doctype") == "Material Request" and args.get("material_request_type") == "Purchase"):
|
||||
args.uom = item.purchase_uom if item.purchase_uom else item.stock_uom
|
||||
else:
|
||||
args.uom = item.stock_uom
|
||||
|
||||
Reference in New Issue
Block a user