IDEMPIERE-2591 OrderPoCreate does not check that Product_PO entries active

This commit is contained in:
Antoni Ten Monrós 2015-04-22 08:26:53 -05:00
parent 5e52732603
commit bae1c3c0f2
1 changed files with 1 additions and 0 deletions

View File

@ -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";