Author: hansbak
Date: Wed Sep 30 10:49:38 2009
New Revision: 820240
URL:
http://svn.apache.org/viewvc?rev=820240&view=revLog:
add related company to the party find list
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/findparty.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/findparty.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/findparty.ftl?rev=820240&r1=820239&r2=820240&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/findparty.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/findparty.ftl Wed Sep 30 10:49:38 2009
@@ -244,6 +244,7 @@
<#if softIdentifier?default("") != "">
<td>${uiLabelMap.ProductSoftIdentifier}</td>
</#if>
+ <td>${uiLabelMap.RelatedCompany}</td>
<td>${uiLabelMap.PartyType}</td>
<td>${uiLabelMap.PartyMainRole}</td>
<td> </td>
@@ -303,6 +304,19 @@
<#if softIdentifier?default("") != "">
<td>${partyRow.softIdentifier?if_exists}</td>
</#if>
+ <td>
+ <#if partyType.partyTypeId=="PERSON">
+ <#assign partyRelateCom = delegator.findByAnd("PartyRelationship", {"partyIdTo", partyRow.partyId,"roleTypeIdFrom","ACCOUNT","roleTypeIdTo","CONTACT"})>
+ <#if partyRelateCom?has_content>
+ <#list partyRelateCom as partyRelationship>
+ <#if partyRelationship.partyIdFrom?has_content>
+ <#assign companyName=Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyRelationship.partyIdFrom, true)>
+ ${companyName?if_exists}
+ </#if>
+ </#list>
+ </#if>
+ </#if>
+ </td>
<td><#if partyType.description?exists>${partyType.get("description", locale)}<#else>???</#if></td>
<td>
<#assign mainRole = dispatcher.runSync("getPartyMainRole", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", partyRow.partyId, "userLogin", userLogin))/>