Skip to content

Commit f97b850

Browse files
Bharathidhasan06mergify[bot]
authored andcommitted
fix(stock): use purchase UOM in Supplier Quotation items
(cherry picked from commit 2606ca6)
1 parent b3e12f9 commit f97b850

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

erpnext/stock/get_item_details.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,10 @@ def get_basic_details(ctx: ItemDetailsCtx, item, overwrite_warehouse=True) -> It
439439
if not ctx.uom:
440440
if ctx.doctype in sales_doctypes:
441441
ctx.uom = item.sales_uom if item.sales_uom else item.stock_uom
442-
elif (ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) or (
443-
ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase"
442+
elif (
443+
(ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"])
444+
or (ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase")
445+
or (ctx.doctype == "Supplier Quotation")
444446
):
445447
ctx.uom = item.purchase_uom if item.purchase_uom else item.stock_uom
446448
else:

0 commit comments

Comments
 (0)