Author: ashish
Date: Fri Aug 29 05:47:05 2008 New Revision: 690217 URL: http://svn.apache.org/viewvc?rev=690217&view=rev Log: Patch from JIRA issue https://issues.apache.org/jira/browse/OFBIZ-1937 (Added new updateCustRequestNote service) For now we are adding service and later on we can add the GUI support for this service. Thanks Ratnesh and Harsha for your contribution. Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml ofbiz/trunk/applications/order/servicedef/services_request.xml Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml?rev=690217&r1=690216&r2=690217&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml Fri Aug 29 05:47:05 2008 @@ -189,13 +189,21 @@ <simple-method method-name="createCustRequestNote" short-description="Create Customer Request Note"> <make-value value-name="newEntity" entity-name="CustRequestNote"/> <set from-field="parameters.custRequestId" field="newEntity.custRequestId"/> - <set from-field="parameters.note" field="newNoteMap.note"/> + <set from-field="parameters.noteInfo" field="newNoteMap.note"/> <call-service service-name="createNote" in-map-name="newNoteMap"> <result-to-field result-name="noteId" map-name="newEntity"/> </call-service> <create-value value-name="newEntity"/> <field-to-result field-name="newEntity.noteId" result-name="noteId"/> </simple-method> + <simple-method method-name="updateCustRequestNote" short-description="Update CustRequest Note"> + <entity-one entity-name="CustRequestNote" value-name="lookedUpValue"/> + <entity-one entity-name="NoteData" value-name="lookedUpValueForNoteData"/> + <set-nonpk-fields value-name="lookedUpValueForNoteData" map-name="parameters"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + <store-value value-name="lookedUpValueForNoteData"/> + </simple-method> <simple-method method-name="createCustRequestItemNote" short-description="Create Customer RequestItem Note"> <make-value value-name="newEntity" entity-name="CustRequestItemNote"/> <set from-field="parameters.custRequestId" field="newEntity.custRequestId"/> Modified: ofbiz/trunk/applications/order/servicedef/services_request.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_request.xml?rev=690217&r1=690216&r2=690217&view=diff ============================================================================== --- ofbiz/trunk/applications/order/servicedef/services_request.xml (original) +++ ofbiz/trunk/applications/order/servicedef/services_request.xml Fri Aug 29 05:47:05 2008 @@ -100,9 +100,16 @@ location="org/ofbiz/order/request/CustRequestServices.xml" invoke="createCustRequestNote" auth="true"> <description>Create a note for a CustRequest</description> <attribute name="custRequestId" type="String" mode="IN" optional="false"/> - <attribute name="note" type="String" mode="IN" optional="false"/> + <attribute name="noteInfo" type="String" mode="IN" optional="false"/> <attribute name="noteId" type="String" mode="OUT" optional="false"/> </service> + <service name="updateCustRequestNote" engine="simple" + location="org/ofbiz/order/request/CustRequestServices.xml" invoke="updateCustRequestNote" auth="true"> + <description>Update CustRequest Note</description> + <attribute name="custRequestId" type="String" mode="IN" optional="false"/> + <attribute name="noteId" type="String" mode="IN" optional="false"/> + <attribute name="noteInfo" type="String" mode="IN" optional="true"/> + </service> <service name="createCustRequestItemNote" engine="simple" location="org/ofbiz/order/request/CustRequestServices.xml" invoke="createCustRequestItemNote" auth="true"> <description>Create a note for a CustRequestItem</description> |
Free forum by Nabble | Edit this page |