Author: jacopoc
Date: Sat Aug 5 00:52:28 2006 New Revision: 428974 URL: http://svn.apache.org/viewvc?rev=428974&view=rev Log: Implemented new "getInventoryAvailableByLocation" service. Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml incubator/ofbiz/trunk/applications/product/servicedef/services_facility.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?rev=428974&r1=428973&r2=428974&view=diff ============================================================================== --- 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 Sat Aug 5 00:52:28 2006 @@ -387,8 +387,9 @@ <!-- this method can be called with some optional parameters: -facilityId + -locationSeqId -containerId - If the service definitions are used then only one of these two will ever be specified, or neither of them. + If the service definitions are used then only some of these will ever be specified, or none of them. Whatever it is called with, it will basicly get a list of InventoryItems and total the available amount. --> @@ -401,6 +402,7 @@ <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"/> <!-- 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 --> Modified: incubator/ofbiz/trunk/applications/product/servicedef/services_facility.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/servicedef/services_facility.xml?rev=428974&r1=428973&r2=428974&view=diff ============================================================================== --- incubator/ofbiz/trunk/applications/product/servicedef/services_facility.xml (original) +++ incubator/ofbiz/trunk/applications/product/servicedef/services_facility.xml Sat Aug 5 00:52:28 2006 @@ -125,6 +125,15 @@ <attribute name="quantityOnHandTotal" type="Double" mode="OUT" optional="false"/> <attribute name="availableToPromiseTotal" type="Double" mode="OUT" optional="false"/> </service> + <service name="getInventoryAvailableByLocation" engine="simple" + location="org/ofbiz/product/inventory/InventoryServices.xml" invoke="getProductInventoryAvailable" auth="false"> + <description>Get Inventory Availability for a Product constrained by a facility and location</description> + <attribute name="productId" type="String" mode="IN" optional="false"/> + <attribute name="facilityId" type="String" mode="IN" optional="false"/> + <attribute name="locationSeqId" type="String" mode="IN" optional="false"/> + <attribute name="quantityOnHandTotal" type="Double" mode="OUT" optional="false"/> + <attribute name="availableToPromiseTotal" type="Double" mode="OUT" optional="false"/> + </service> <service name="getInventoryAvailableByContainer" engine="simple" location="org/ofbiz/product/inventory/InventoryServices.xml" invoke="getProductInventoryAvailable" auth="false"> <description>Get Inventory Availability for a Product constrained by a containerId</description> |
Free forum by Nabble | Edit this page |