Author: apatel
Date: Wed Jun 10 06:02:49 2009
New Revision: 783216
URL:
http://svn.apache.org/viewvc?rev=783216&view=revLog:
Adding account field to opportunity summary screen.
Modified:
ofbiz/trunk/applications/marketing/widget/sfa/OpportunityScreens.xml
ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml
Modified: ofbiz/trunk/applications/marketing/widget/sfa/OpportunityScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/OpportunityScreens.xml?rev=783216&r1=783215&r2=783216&view=diff==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/OpportunityScreens.xml (original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/OpportunityScreens.xml Wed Jun 10 06:02:49 2009
@@ -115,6 +115,16 @@
<set field="tabButtonItem" value="ViewSalesOpportunity"/>
<set field="salesOpportunityId" from-field="parameters.salesOpportunityId"/>
<entity-one entity-name="SalesOpportunity" value-field="salesOpportunity"/>
+ <service service-name="findPartyInSalesOpportunityRole" result-map="accountPartyResult">
+ <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/>
+ <field-map field-name="roleTypeId" value="ACCOUNT"/>
+ </service>
+ <set field="accountPartyId" from-field="accountPartyResult.partyId"/>
+ <service service-name="findPartyInSalesOpportunityRole" result-map="leadPartyResult">
+ <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/>
+ <field-map field-name="roleTypeId" value="LEAD"/>
+ </service>
+ <set field="leadPartyId" from-field="leadPartyResult.partyId"/>
</actions>
<widgets>
<decorator-screen name="CommonOpportunityDecorator" location="${parameters.mainDecoratorLocation}">
Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml?rev=783216&r1=783215&r2=783216&view=diff==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml (original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml Wed Jun 10 06:02:49 2009
@@ -130,7 +130,7 @@
header-row-style="header-row" default-table-style="basic-table">
<field name="salesOpportunityId"><hidden/></field>
<field name="opportunityName" position="1" title="${uiLabelMap.SfaOpportunityName}"><display/></field>
- <field name="initialAccount" position="1" title="${uiLabelMap.SfaInitialAccount}"><display/></field>
+ <field name="accountPartyId" position="1" title="${uiLabelMap.SfaInitialAccount}"><display/></field>
<field name="estimatedAmount" position="1" title="${uiLabelMap.SfaEstimatedAmount} ${currencyUomId}"><display/></field>
<field name="typeEnumId" position="1" title="${uiLabelMap.SfaType}"><display/></field>
<field name="estimatedCloseDate" position="1" title="${uiLabelMap.SfaCloseDate}"><display/></field>