You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/11/13 05:50:10 UTC

svn commit: r594432 - /ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl

Author: sichen
Date: Mon Nov 12 20:50:06 2007
New Revision: 594432

URL: http://svn.apache.org/viewvc?rev=594432&view=rev
Log:
prevent potential problems from a null ReturnAdjustment.amount

Modified:
    ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl

Modified: ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl?rev=594432&r1=594431&r2=594432&view=diff
==============================================================================
--- ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl (original)
+++ ofbiz/branches/release4.0/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl Mon Nov 12 20:50:06 2007
@@ -30,7 +30,9 @@
     </fo:table-cell>
     <fo:table-cell padding="1mm" text-align="right"><fo:block><@ofbizCurrency amount=returnAdjustment.amount isoCode=returnHeader.currencyUomId/></fo:block></fo:table-cell>
     </fo:table-row>
-    <#assign total = total + returnAdjustment.get("amount")>
+    <#if returnAdjustment.amount?has_content> 
+         <#assign total = total + returnAdjustment.get("amount")>
+    </#if>
 </#macro>
 
       <#-- Items returned -->