svn commit: r537828 - /ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r537828 - /ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl

jacopoc
Author: jacopoc
Date: Mon May 14 06:31:21 2007
New Revision: 537828

URL: http://svn.apache.org/viewvc?view=rev&rev=537828
Log:
Fix for shipment with no packages defined.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl?view=diff&rev=537828&r1=537827&r2=537828
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/shipment/PackingSlip.fo.ftl Mon May 14 06:31:21 2007
@@ -35,7 +35,7 @@
         <#assign carrier = (shipGroup.carrierPartyId)?default("N/A")>
         <fo:page-sequence master-reference="main">
         <fo:flow flow-name="xsl-region-body" font-family="Helvetica">
-
+            <#if packages?has_content>
             <#list packages as package>
 
             <fo:block>
@@ -179,6 +179,11 @@
 
             <#if package_has_next><fo:block break-before="page"/></#if>
             </#list> <#-- packages -->
+            <#else>
+                <fo:block font-size="14pt">
+                    ${uiLabelMap.ProductErrorNoPackagesFoundForShipment}
+                </fo:block>
+            </#if>
 
         </fo:flow>
         </fo:page-sequence>