You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2008/05/13 09:52:41 UTC

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

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"/>