mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix(stock): use purchase UOM in Supplier Quotation items
(cherry picked from commit 2606ca6fa9)
This commit is contained in:
committed by
Mergify
parent
b3e12f9acb
commit
f97b850077
@@ -439,8 +439,10 @@ def get_basic_details(ctx: ItemDetailsCtx, item, overwrite_warehouse=True) -> It
|
||||
if not ctx.uom:
|
||||
if ctx.doctype in sales_doctypes:
|
||||
ctx.uom = item.sales_uom if item.sales_uom else item.stock_uom
|
||||
elif (ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) or (
|
||||
ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase"
|
||||
elif (
|
||||
(ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"])
|
||||
or (ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase")
|
||||
or (ctx.doctype == "Supplier Quotation")
|
||||
):
|
||||
ctx.uom = item.purchase_uom if item.purchase_uom else item.stock_uom
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user