Author: sichen
Date: Wed Jan 3 16:22:15 2007
New Revision: 492367
URL:
http://svn.apache.org/viewvc?view=rev&rev=492367Log:
Return the original statusId when an InventoryItem is updated. Useful for SECA chains.
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?view=diff&rev=492367&r1=492366&r2=492367==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Wed Jan 3 16:22:15 2007
@@ -156,6 +156,7 @@
<set field="lookedUpValue.ownerPartyId" from-field="oldFacility.ownerPartyId"/>
</if-empty>
<field-to-result field-name="lookedUpValue.ownerPartyId" result-name="oldOwnerPartyId"/>
+ <field-to-result field-name="lookedUpValue.statusId" result-name="oldStatusId"/>
<set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
<store-value value-name="lookedUpValue"/>
</simple-method>
Modified: ofbiz/trunk/applications/product/servicedef/services_facility.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_facility.xml?view=diff&rev=492367&r1=492366&r2=492367==============================================================================
--- ofbiz/trunk/applications/product/servicedef/services_facility.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/services_facility.xml Wed Jan 3 16:22:15 2007
@@ -53,6 +53,7 @@
<exclude field-name="quantityOnHandTotal"/>
</auto-attributes>
<attribute name="oldOwnerPartyId" mode="OUT" optional="false" type="String"/>
+ <attribute name="oldStatusId" mode="OUT" optional="true" type="String"/>
</service>
<service name="checkProductInventoryDiscontinuation" engine="simple"
location="org/ofbiz/product/inventory/InventoryServices.xml" invoke="checkProductInventoryDiscontinuation" auth="false">