Author: jacopoc Date: Wed Dec 6 13:31:07 2006 New Revision: 483243 URL: http://svn.apache.org/viewvc?view=rev&rev=483243 Log: Applied patch from Ray Barlow (part of OFBIZ-226) to get the items with null location. This is an hack and we should really find a better way to hadle this situation, so I've added a FIXME comment to remember this.
Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?view=diff&rev=483243&r1=483242&r2=483243 ============================================================================== --- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original) +++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Wed Dec 6 13:31:07 2006 @@ -404,7 +404,15 @@ <set from-field="parameters.facilityId" field="lookupFieldMap.facilityId"/> <set from-field="parameters.locationSeqId" field="lookupFieldMap.locationSeqId"/> <set from-field="parameters.containerId" field="lookupFieldMap.containerId"/> - + + <!-- FIXME: this is an hack to get all the items with a null location: + if the parameters.locationSeqId string is equal to "nullField" then + set the lookupFieldMap.locationSeqId to null + --> + <if-compare field-name="parameters.locationSeqId" operator="equals" value="nullField"> + <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 --> <find-by-and entity-name="InventoryItem" map-name="lookupFieldMap" list-name="inventoryItems"/> <!-- use-cache="true" -->