Author: sichen
Date: Thu Jul 6 12:52:38 2006
New Revision: 419684
URL:
http://svn.apache.org/viewvc?rev=419684&view=revLog:
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}&shipmentRouteSegmentId=${segment.shipmentRouteSegmentId}&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>