Author: mor
Date: Fri Jan 21 07:34:26 2011
New Revision: 1061657
URL: http://svn.apache.org/viewvc?rev=1061657&view=rev
Log:
Added a utility method to get inventory QOH and ATP total by supplier.
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
ofbiz/trunk/applications/product/servicedef/services_facility.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=1061657&r1=1061656&r2=1061657&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 Jan 21 07:34:26 2011
@@ -593,6 +593,7 @@ under the License.
<!--
this method can be called with some optional parameters:
-facilityId
+ -partyId
-locationSeqId
-containerId
If the service definitions are used then only some of these will
ever be specified, or none of them.
@@ -613,6 +614,7 @@ under the License.
<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.partyId" field="lookupFieldMap.partyId"/>
<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: ofbiz/trunk/applications/product/servicedef/services_facility.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_facility.xml?rev=1061657&r1=1061656&r2=1061657&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/servicedef/services_facility.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/services_facility.xml Fri Jan
21 07:34:26 2011
@@ -208,6 +208,16 @@ under the License.
<attribute name="quantityOnHandTotal" type="BigDecimal" mode="OUT"
optional="false"/>
<attribute name="availableToPromiseTotal" type="BigDecimal" mode="OUT"
optional="false"/>
</service>
+ <service name="getProductInventoryAvailableBySupplier" engine="simple"
+
location="component://product/script/org/ofbiz/product/inventory/InventoryServices.xml"
invoke="getProductInventoryAvailable" auth="false" use-transaction="false">
+ <description>Get Inventory Availability for a Product by a
Supplier</description>
+ <attribute name="productId" type="String" mode="IN" optional="false"/>
+ <attribute name="partyId" type="String" mode="IN" optional="false"/>
+ <attribute name="statusId" type="String" mode="IN" optional="true"/>
+ <attribute name="quantityOnHandTotal" type="BigDecimal" mode="OUT"
optional="false"/>
+ <attribute name="availableToPromiseTotal" type="BigDecimal" mode="OUT"
optional="false"/>
+ <attribute name="useCache" type="Boolean" mode="IN" optional="true"/>
+ </service>
<service name="countProductInventoryOnHand" engine="simple"
location="component://product/script/org/ofbiz/product/inventory/InventoryServices.xml"
invoke="countProductInventoryOnHand" auth="true" use-transaction="false">
<description>Count Inventory On Hand for a Product constrained by a
facilityId at a given date.</description>