diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 9c251b8b29..cdf5aa1f3d 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -255,7 +255,7 @@ def apply_pricing_rule(args): args = frappe._dict(args) out = frappe._dict() - if not args.get("item_code"): return + if args.get("doctype") == "Material Request" or not args.get("item_code"): return out if not args.get("item_group") or not args.get("brand"): args.item_group, args.brand = frappe.db.get_value("Item",