From 61d02cb3af99297526b0a194afc114d2def47a38 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 10 Apr 2007 02:00:59 +0000 Subject: [PATCH] * [ 1658448 ] Remove use of rownum --- serverRoot/src/main/server/org/compiere/acct/Doc_Order.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java b/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java index 89a6042396..07cc7994da 100644 --- a/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java +++ b/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java @@ -428,7 +428,7 @@ public class Doc_Order extends Doc sql.append(" AND ROWNUM=1 "); } else - sql.append(" AND o.UPDATED IN (SELECT MAX(o1.UPDATED) " + sql.append(" AND ol.C_OrderLine_ID = (SELECT MIN(ol1.C_OrderLine_ID) " + "FROM C_Order o1, C_OrderLine ol1 " + "WHERE o1.C_Order_ID=ol1.C_Order_ID" + " AND po.M_Product_ID=ol1.M_Product_ID AND po.C_BPartner_ID=o1.C_BPartner_ID") @@ -626,7 +626,7 @@ public class Doc_Order extends Doc sql.append(" AND ROWNUM=1 "); } else - sql.append(" AND o.UPDATED IN (SELECT MAX(o1.UPDATED) " + sql.append(" AND ol.C_OrderLine_ID = (SELECT MIN(ol1.C_OrderLine_ID) " + "FROM C_Order o1, C_OrderLine ol1 " + "WHERE o1.C_Order_ID=ol1.C_Order_ID" + " AND pc.M_Product_ID=ol1.M_Product_ID ")