svn commit: r478321 - /incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r478321 - /incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java

sichen
Author: sichen
Date: Wed Nov 22 12:54:43 2006
New Revision: 478321

URL: http://svn.apache.org/viewvc?view=rev&rev=478321
Log:
oops.  mistakenly committed

Modified:
    incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java

Modified: incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java?view=diff&rev=478321&r1=478320&r2=478321
==============================================================================
--- incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java (original)
+++ incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java Wed Nov 22 12:54:43 2006
@@ -102,8 +102,7 @@
             supplierProducts = EntityUtil.filterByDate(supplierProducts, UtilDateTime.nowTimestamp(), "availableFromDate", "availableThruDate", true);
             
             //sort resulting list of SupplierProduct entities by price in ASCENDING order
-            // AceComm change: get the price of the first minOrderQty which is less than quantity, which may be the highest
-            supplierProducts = EntityUtil.orderBy(supplierProducts, UtilMisc.toList("minimumOrderQuantity DESC"));
+            supplierProducts = EntityUtil.orderBy(supplierProducts, UtilMisc.toList("lastPrice ASC"));
             
             results = ServiceUtil.returnSuccess();
             results.put("supplierProducts", supplierProducts);