Author: jacopoc
Date: Mon Nov 26 01:07:50 2007
New Revision: 598177
URL:
http://svn.apache.org/viewvc?rev=598177&view=revLog:
Before triggering the createInventoryItemStatus service, that requires the statusId field, verify if the statusId is actually available in the context. Without this condition an error message was returned (for example when a non-serialized inventory item was transferred between two warehouses owned by different companies).
Modified:
ofbiz/trunk/applications/product/servicedef/secas.xml
Modified: ofbiz/trunk/applications/product/servicedef/secas.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/secas.xml?rev=598177&r1=598176&r2=598177&view=diff==============================================================================
--- ofbiz/trunk/applications/product/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/secas.xml Mon Nov 26 01:07:50 2007
@@ -27,11 +27,13 @@
<action service="createInventoryItemStatus" mode="sync"/>
</eca>
<eca service="updateInventoryItem" event="commit">
+ <condition field-name="statusId" operator="is-not-empty"/>
<condition field-name="productId" operator="is-not-empty"/>
<condition-field field-name="oldProductId" operator="not-equals" to-field-name="productId"/>
<action service="createInventoryItemStatus" mode="sync"/>
</eca>
<eca service="updateInventoryItem" event="commit">
+ <condition field-name="statusId" operator="is-not-empty"/>
<condition field-name="ownerPartyId" operator="is-not-empty"/>
<condition-field field-name="oldOwnerPartyId" operator="not-equals" to-field-name="ownerPartyId"/>
<action service="createInventoryItemStatus" mode="sync"/>