svn commit: r655765 - /ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r655765 - /ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml

mor-2
Author: mor
Date: Tue May 13 00:52:40 2008
New Revision: 655765

URL: http://svn.apache.org/viewvc?rev=655765&view=rev
Log:
small improvements to createLead service, now party role is also stored

Modified:
    ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml

Modified: ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml?rev=655765&r1=655764&r2=655765&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml (original)
+++ ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml Tue May 13 00:52:40 2008
@@ -26,6 +26,11 @@
         <set field="parameters.roleTypeId" value="LEAD"/>
         <call-simple-method method-name="createPersonRoleAndContactMechs" xml-resource="org/ofbiz/party/party/PartySimpleMethods.xml"/>
         <if-not-empty field-name="userLogin.partyId">
+            
+            <set field="createPartyRoleCtx.partyId" from-field="userLogin.partyId"/>
+            <set field="createPartyRoleCtx.roleTypeId" value="OWNER"/>
+            <call-service service-name="createPartyRole" in-map-name="createPartyRoleCtx"/>
+                        
             <set field="partyRelationshipContext.partyIdFrom" from-field="userLogin.partyId"/>
             <set field="partyRelationshipContext.partyIdTo" from-field="partyId"/>
             <set field="partyRelationshipContext.roleTypeIdFrom" value="OWNER"/>