test: test case to validate rejected qty without accepted warehouse
diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py
index 2bac726..eda3686 100644
--- a/erpnext/controllers/buying_controller.py
+++ b/erpnext/controllers/buying_controller.py
@@ -466,7 +466,7 @@
 			if d.item_code not in stock_items:
 				continue
 
-			if d.item_code in stock_items and d.warehouse:
+			if d.warehouse:
 				pr_qty = flt(d.qty) * flt(d.conversion_factor)
 
 				if pr_qty: