Author: jaz
Date: Thu Jun 4 05:23:54 2009
New Revision: 781653
URL:
http://svn.apache.org/viewvc?rev=781653&view=revLog:
only run the cancel item event if a single item is cancelled, if all items are cancelled the order status change will run instead
Modified:
ofbiz/trunk/specialpurpose/googlecheckout/servicedef/secas.xml
Modified: ofbiz/trunk/specialpurpose/googlecheckout/servicedef/secas.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlecheckout/servicedef/secas.xml?rev=781653&r1=781652&r2=781653&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/googlecheckout/servicedef/secas.xml (original)
+++ ofbiz/trunk/specialpurpose/googlecheckout/servicedef/secas.xml Thu Jun 4 05:23:54 2009
@@ -34,6 +34,7 @@
<eca service="changeOrderItemStatus" event="commit" run-on-failure="false" run-on-error="false">
<condition-field field-name="statusId" operator="not-equals" to-field-name="fromStatusId"/>
<condition field-name="statusId" operator="equals" value="ITEM_CANCELLED"/>
+ <condition field-name="orderItemSeqId" operator="is-not-empty"/>
<action service="sendGoogleOrderItemCancelRequest" mode="sync" result-to-context="true" ignore-failure="false"/>
</eca>