svn commit: r1744911 - /ofbiz/trunk/applications/order/servicedef/secas.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1744911 - /ofbiz/trunk/applications/order/servicedef/secas.xml

diveshdutta
Author: diveshdutta
Date: Sat May 21 11:38:44 2016
New Revision: 1744911

URL: http://svn.apache.org/viewvc?rev=1744911&view=rev
Log:
[OFBIZ-7101] When changing the status of any return to 'accepted', the status of return item should be changed to 'accepted' as well. Thanks Anuj Jain for the patch.

Modified:
    ofbiz/trunk/applications/order/servicedef/secas.xml

Modified: ofbiz/trunk/applications/order/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/secas.xml?rev=1744911&r1=1744910&r2=1744911&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/secas.xml Sat May 21 11:38:44 2016
@@ -266,6 +266,11 @@ under the License.
         <action service="createReturnStatus" mode="sync"/>
         <action service="processWaitReplacementReturn" mode="sync"/>
     </eca>
+    <eca service="updateReturnHeader" event="commit">
+        <condition field-name="statusId" operator="equals" value="RETURN_ACCEPTED"/>
+        <condition field-name="oldStatusId" operator="not-equals" value="RETURN_ACCEPTED"/>
+        <action service="updateReturnItemsStatus" mode="sync"/>
+    </eca>
 
     <eca service="updateReturnItem" event="commit">
         <condition field-name="statusId" operator="equals" value="RETURN_CANCELLED"/>