Author: arunpatidar
Date: Thu Sep 8 18:36:34 2016
New Revision: 1759884
URL:
http://svn.apache.org/viewvc?rev=1759884&view=revLog:
Applied patch for "Added CRUD services for CustRequestCommEvent entity" from issue [OFBIZ-8096]
Thanks Amit Gadaley and Rishi Solanki for your contribution.
Modified:
ofbiz/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
ofbiz/trunk/applications/party/servicedef/services.xml
Modified: ofbiz/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/communication/CommunicationEventServices.xml?rev=1759884&r1=1759883&r2=1759884&view=diff==============================================================================
--- ofbiz/trunk/applications/party/minilang/communication/CommunicationEventServices.xml (original)
+++ ofbiz/trunk/applications/party/minilang/communication/CommunicationEventServices.xml Thu Sep 8 18:36:34 2016
@@ -207,10 +207,9 @@ under the License.
<create-value value-field="eventOrder"/>
</if-not-empty>
<if-not-empty field="parameters.custRequestId">
- <make-value value-field="eventRequest" entity-name="CustRequestCommEvent"/>
- <set from-field="parameters.custRequestId" field="eventRequest.custRequestId"/>
- <set from-field="newEntity.communicationEventId" field="eventRequest.communicationEventId"/>
- <create-value value-field="eventRequest"/>
+ <set from-field="parameters.custRequestId" field="CustRequestCommEvent.custRequestId"/>
+ <set from-field="newEntity.communicationEventId" field="CustRequestCommEvent.communicationEventId"/>
+ <call-service service-name="createCustRequestCommEvent" in-map-name="CustRequestCommEvent"/>
</if-not-empty>
<!-- partyIdTo role-->
Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1759884&r1=1759883&r2=1759884&view=diff==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Thu Sep 8 18:36:34 2016
@@ -811,6 +811,11 @@ under the License.
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
+ <service name="deleteCustRequestCommEvent" default-entity-name="CustRequestCommEvent" engine="entity-auto" invoke="delete" auth="true">
+ <description>Delete a CustRequestCommEvent</description>
+ <permission-service service-name="partyCommunicationEventPermissionCheck" main-action="DELETE"/>
+ <auto-attributes include="pk" mode="IN"/>
+ </service>
<service name="createCommunicationEventRoleInterface" engine="interface" location="" invoke="">
<description>Create a Communication Event Role with or w/o permission check</description>
<auto-attributes entity-name="CommunicationEventRole" include="pk" mode="IN" optional="false"/>