svn commit: r419684 - /incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.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: r419684 - /incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl

sichen
Author: sichen
Date: Thu Jul  6 12:52:38 2006
New Revision: 419684

URL: http://svn.apache.org/viewvc?rev=419684&view=rev
Log:
Fixed bug in batch print shipping labels when no labels are selected.

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl?rev=419684&r1=419683&r2=419684&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl Thu Jul  6 12:52:38 2006
@@ -42,10 +42,13 @@
        <fo:flow flow-name="xsl-region-body">
        <#assign segments = Static["org.ofbiz.base.util.UtilHttp"].parseMultiFormData(parameters)>
        <#list segments as segment>
-         <fo:block break-before="page"> <#-- this tells fop to put a page break before this content -->
+         <fo:block break-before="page"> <#-- this tells fop to put a page break before this content TODO: content-type must be dynamic -->
            <fo:external-graphic content-type="content-type:image/gif" src="<@ofbizUrl>viewShipmentLabel?shipmentId=${segment.shipmentId}&amp;shipmentRouteSegmentId=${segment.shipmentRouteSegmentId}&amp;shipmentPackageSeqId=${segment.shipmentPackageSeqId}</@ofbizUrl>"></fo:external-graphic>
          </fo:block>
       </#list>
+      <#if segments.size() == 0>
+        <fo:block>No Shipping Labels Selected</fo:block>
+      </#if>
       </fo:flow>
   </fo:page-sequence>
 </fo:root>