From bae1c3c0f289ad30f75ad9d8e95285fd767e0e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Ten=20Monr=C3=B3s?= Date: Wed, 22 Apr 2015 08:26:53 -0500 Subject: [PATCH] IDEMPIERE-2591 OrderPoCreate does not check that Product_PO entries active --- .../src/org/compiere/process/OrderPOCreate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java b/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java index 7e01ffc1d0..957df648e2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java @@ -189,6 +189,7 @@ public class OrderPOCreate extends SvrProcess + "FROM M_Product_PO po" + " INNER JOIN C_OrderLine ol ON (po.M_Product_ID=ol.M_Product_ID) " + "WHERE ol.C_Order_ID=? AND po.IsCurrentVendor='Y' " + + "AND po.IsActive='Y' " + ((p_Vendor_ID > 0) ? " AND po.C_BPartner_ID=? " : "") + "GROUP BY po.M_Product_ID " + "ORDER BY 1";