fix(stock): get item price based on party
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py
index e1607a9..ec1031c 100644
--- a/erpnext/stock/get_item_details.py
+++ b/erpnext/stock/get_item_details.py
@@ -440,13 +440,12 @@
 		and ifnull(uom, '') in ('', %(uom)s)"""
 
 	if not ignore_party:
-		conditions += " and (customer is null or customer = '') and (supplier is null or supplier = '')"
 		if args.get("customer"):
 			conditions += " and customer=%(customer)s"
-
-		if args.get("supplier"):
+		elif args.get("supplier"):
 			conditions += " and supplier=%(supplier)s"
-
+		else:
+			conditions += " and (customer is null or customer = '') and (supplier is null or supplier = '')"
 
 	if args.get('min_qty'):
 		conditions += " and ifnull(min_qty, 0) <= %(min_qty)s"