Modified the Packing Slip report to use the common decorator for FOP reports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@646857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -18,38 +18,13 @@ under the License.
|
||||
-->
|
||||
|
||||
<#escape x as x?xml>
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
||||
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="main" page-height="11in" page-width="8.5in"
|
||||
margin-top="0.5in" margin-bottom="1in" margin-left="1in" margin-right="1in">
|
||||
<fo:region-body margin-top="1in"/>
|
||||
<fo:region-before extent="1in"/>
|
||||
<fo:region-after extent="1in"/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
|
||||
<#if hasPermission>
|
||||
<#assign shipGroup = shipment.getRelatedOne("PrimaryOrderItemShipGroup")?if_exists>
|
||||
<#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>
|
||||
${screens.render("component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo")}
|
||||
</fo:block>
|
||||
<fo:block text-align="right">
|
||||
<fo:instream-foreign-object>
|
||||
<barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns"
|
||||
message="${shipment.shipmentId}">
|
||||
<barcode:code39>
|
||||
<barcode:height>8mm</barcode:height>
|
||||
</barcode:code39>
|
||||
</barcode:barcode>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
<fo:block><fo:leader/></fo:block>
|
||||
|
||||
<fo:block font-size="14pt">${uiLabelMap.ProductShipmentId} #${shipmentId} / Package ${package_index + 1}<#if (packages?size > 1)> of ${packages?size}</#if></fo:block>
|
||||
@@ -197,14 +172,9 @@ under the License.
|
||||
</fo:block>
|
||||
</#if>
|
||||
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
|
||||
<#else>
|
||||
<fo:block font-size="14pt">
|
||||
${uiLabelMap.ProductFacilityViewPermissionError}
|
||||
</fo:block>
|
||||
</#if>
|
||||
|
||||
</fo:root>
|
||||
</#escape>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#escape x as x?xml>
|
||||
<fo:block>
|
||||
<fo:instream-foreign-object>
|
||||
<barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns"
|
||||
message="${shipment.shipmentId}">
|
||||
<barcode:code39>
|
||||
<barcode:height>8mm</barcode:height>
|
||||
</barcode:code39>
|
||||
</barcode:barcode>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
</#escape>
|
||||
@@ -290,9 +290,35 @@ under the License.
|
||||
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.bsh"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://product/webapp/facility/shipment/PackingSlip.fo.ftl"/></html>
|
||||
</platform-specific>
|
||||
<decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<!-- at the top left of every page we put the logo and company information -->
|
||||
<decorator-section name="topLeft">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<!-- at the top right of every page we put the order information -->
|
||||
<decorator-section name="topRight">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://product/webapp/facility/shipment/PackingSlipShipmentBarCode.fo.ftl"/></html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://product/webapp/facility/shipment/PackingSlip.fo.ftl"/></html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
Reference in New Issue
Block a user