svn commit: r517954 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java

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

svn commit: r517954 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java

sichen
Author: sichen
Date: Tue Mar 13 17:38:37 2007
New Revision: 517954

URL: http://svn.apache.org/viewvc?view=rev&rev=517954
Log:
Get around some problems with packing sessions due to mis-allocation of inventory across quantities

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java?view=diff&rev=517954&r1=517953&r2=517954
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java Tue Mar 13 17:38:37 2007
@@ -120,7 +120,7 @@
         invLookup.put("orderId", orderId);
         invLookup.put("orderItemSeqId", orderItemSeqId);
         invLookup.put("shipGroupSeqId", shipGroupSeqId);
-        List reservations = this.getDelegator().findByAnd("OrderItemShipGrpInvRes", invLookup);
+        List reservations = this.getDelegator().findByAnd("OrderItemShipGrpInvRes", invLookup, UtilMisc.toList("quantity DESC"));
 
         // no reservations we cannot add this item
         if (UtilValidate.isEmpty(reservations)) {