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.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ashish Vijaywargiya
2009-09-16 14:14:16 +00:00
parent 2b501534c2
commit bf8d032e86
2 changed files with 11 additions and 1 deletions
@@ -1014,7 +1014,15 @@ under the License.
<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"/>
@@ -1256,6 +1256,8 @@ under the License.
<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"