diff --git a/base/src/org/compiere/model/MMatchPO.java b/base/src/org/compiere/model/MMatchPO.java index ede4195be6..a08c84c251 100644 --- a/base/src/org/compiere/model/MMatchPO.java +++ b/base/src/org/compiere/model/MMatchPO.java @@ -738,7 +738,7 @@ public class MMatchPO extends X_M_MatchPO public static void consolidate(Properties ctx) { String sql = "SELECT * FROM M_MatchPO po " - + "WHERE EXISTS (SELECT * FROM M_MatchPO x " + + "WHERE EXISTS (SELECT 1 FROM M_MatchPO x " + "WHERE po.C_OrderLine_ID=x.C_OrderLine_ID AND po.Qty=x.Qty " + "GROUP BY C_OrderLine_ID, Qty " + "HAVING COUNT(*) = 2) "