Author: apatel
Date: Thu Dec  3 02:00:54 2009
New Revision: 886651

URL: http://svn.apache.org/viewvc?rev=886651&view=rev
Log:
[OFBIZ-3287] Fix console warnings. Sumit, Thanks for working on it.

Modified:
    
ofbiz/trunk/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl

Modified: 
ofbiz/trunk/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl?rev=886651&r1=886650&r2=886651&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
 (original)
+++ 
ofbiz/trunk/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
 Thu Dec  3 02:00:54 2009
@@ -202,15 +202,9 @@
                       <#if payment?has_content>
                         <#assign paymentGroupMembers = 
Static["org.ofbiz.entity.util.EntityUtil"].filterByDate(payment.getRelated("PaymentGroupMember")?if_exists)
 />
                         <#assign fromParty = 
payment.getRelatedOne("FromParty")?if_exists />
-                        <#assign fromPartyName = 
fromParty.getRelatedOne("Person")?if_exists />
-                        <#if !(fromPartyName?has_content)>
-                          <#assign fromPartyName = 
fromParty.getRelatedOne("PartyGroup")?if_exists />
-                        </#if>
+                        <#assign fromPartyName = 
delegator.findOne("PartyNameView", {"partyId" : fromParty.partyId}, true) />
                         <#assign toParty = 
payment.getRelatedOne("ToParty")?if_exists />
-                        <#assign toPartyName = 
toParty.getRelatedOne("Person")?if_exists />
-                        <#if !(toPartyName?has_content)>
-                          <#assign toPartyName = 
toParty.getRelatedOne("PartyGroup")?if_exists />
-                        </#if>
+                        <#assign toPartyName = 
delegator.findOne("PartyNameView", {"partyId" : toParty.partyId}, true) />
                         <#if paymentGroupMembers?has_content>
                           <#assign paymentGroupMember = 
Static["org.ofbiz.entity.util.EntityUtil"].getFirst(paymentGroupMembers) />
                         </#if>


Reply via email to