Author: ashish
Date: Wed Sep 16 14:14:16 2009
New Revision: 815795
URL:
http://svn.apache.org/viewvc?rev=815795&view=revLog:
Applied patch from jira issue OFBIZ-2936 - Update service - quickCreateCustomer, add a new field which facilitate user to signup for newsletter as well.
Thanks Awdesh & Sumit for the contribution.
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
ofbiz/trunk/applications/party/servicedef/services.xml
Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?rev=815795&r1=815794&r2=815795&view=diff==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Wed Sep 16 14:14:16 2009
@@ -1014,7 +1014,15 @@
<set field="emailAddressInMap.userLogin" from-field="userLogin"/>
<set field="emailAddressInMap.contactMechPurposeTypeId" value="PRIMARY_EMAIL"/>
<call-service service-name="createPartyEmailAddress" in-map-name="emailAddressInMap"/>
-
+
+ <!-- Signup for Contact List -->
+ <if-compare field="parameters.subscribeContactList" operator="equals" value="Y">
+ <set field="signUpForContactListMap.partyId" from-field="partyId"/>
+ <set field="signUpForContactListMap.contactListId" from-field="parameters.contactListId"/>
+ <set field="signUpForContactListMap.email" from-field="parameters.emailAddress"/>
+ <call-service service-name="signUpForContactList" in-map-name="signUpForContactListMap"/>
+ </if-compare>
+
<!-- Create the PartyRole -->
<set field="createPartyRoleInMap.partyId" from-field="partyId"/>
<set field="createPartyRoleInMap.roleTypeId" value="CUSTOMER"/>
Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=815795&r1=815794&r2=815795&view=diff==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Wed Sep 16 14:14:16 2009
@@ -1256,6 +1256,8 @@
<attribute name="lastName" type="String" mode="IN" optional="false"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="OUT" optional="false"/>
+ <attribute name="contactListId" type="String" mode="IN" optional="true"/>
+ <attribute name="subscribeContactList" type="String" mode="IN" optional="true"/>
</service>
<service name="getPartyMainRole" engine="simple"