[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.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1744911 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Divesh Dutta
2016-05-21 11:38:44 +00:00
parent 8d5599c88d
commit f6d8b33cf9
+5
View File
@@ -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"/>