You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/04/03 02:57:45 UTC

svn commit: r524984 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

Author: sichen
Date: Mon Apr  2 17:57:44 2007
New Revision: 524984

URL: http://svn.apache.org/viewvc?view=rev&rev=524984
Log:
order inventory rebalancing for serialized items by reservedDatetime

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?view=diff&rev=524984&r1=524983&r2=524984
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Mon Apr  2 17:57:44 2007
@@ -608,8 +608,10 @@
                         <store-value value-name="nonSerInvItem"/>
                         <check-errors/>
                         
-                        <get-related value-name="nonSerInvItem" relation-name="OrderItemShipGrpInvRes" list-name="nonSerInvRes"/>
-                        <!-- TODO: Order the list of reservations -->
+                        <!-- Get list of reservations ordered by reservedDatetime, oldest one first -->
+                        <string-to-list string="reservedDatetime" list-name="orderByList"/>
+                        <get-related value-name="nonSerInvItem" relation-name="OrderItemShipGrpInvRes" list-name="nonSerInvRes"
+                             order-by-list-name="orderByList"/>
                         <first-from-list entry-name="inventoryReservation" list-name="nonSerInvRes"/>                    
                         <if-not-empty field-name="inventoryReservation">