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

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

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

jleroux@apache.org
Author: jleroux
Date: Fri Feb 27 16:53:28 2009
New Revision: 748589

URL: http://svn.apache.org/viewvc?rev=748589&view=rev
Log:
Fix "Inventory showing as 0/0" https://issues.apache.org/jira/browse/OFBIZ-2198 OFBIZ-2198

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?rev=748589&r1=748588&r2=748589&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Fri Feb 27 16:53:28 2009
@@ -596,15 +596,14 @@
             <set from-field="nullField" field="lookupFieldMap.locationSeqId"/>
         </if-compare>
 
-        <!-- we might get away with a cache here since real serious errors will occur during the reservation service... but only if we need the speed -->
-        <entity-and entity-name="InventoryItem" list="inventoryItems" use-cache="${parameters.useCache}">
-            <field-map field-name="inventoryItemId" from-field="parameters.inventoryItemId"/>
-            <field-map field-name="productId" from-field="parameters.productId"/>
-            <field-map field-name="facilityId" from-field="parameters.facilityId"/>
-            <field-map field-name="locationSeqId" from-field="parameters.locationSeqId"/>
-            <field-map field-name="containerId" from-field="parameters.containerId"/>
-            <use-iterator/>
-        </entity-and>
+        <!-- we might get away with a cache here since real serious errors will occur during the reservation service... but only if we need the speed -->        
+        <set from-field="parameters.inventoryItemId" field="lookupFieldMap.inventoryItemId"/>
+        <set from-field="parameters.productId" field="lookupFieldMap.productId"/>
+        <set from-field="parameters.facilityId" field="lookupFieldMap.facilityId"/>
+        <set from-field="parameters.locationSeqId" field="lookupFieldMap.locationSeqId"/>
+        <set from-field="parameters.containerId" field="lookupFieldMap.containerId"/>
+        
+        <find-by-and entity-name="InventoryItem" map="lookupFieldMap" list="inventoryItems" use-iterator="true" use-cache="${parameters.useCache}"/>
         
         <set field="parameters.availableToPromiseTotal" value="0" type="BigDecimal"/>
         <set field="parameters.quantityOnHandTotal" value="0" type="BigDecimal"/>