From fc896386fb0815665c014ebdaaffb225f488d4d3 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Fri, 11 Apr 2008 09:09:32 +0000 Subject: [PATCH] Modified the Shipment Manifest report to use the common decorator for FOP reports. This also fixes some of the issues that were affecting the report: for example the validation error happening with shipments with no items/packages. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@647084 13f79535-47bb-0310-9956-ffa450edef68 --- .../facility/shipment/ShipmentManifest.fo.ftl | 48 ++++--------------- .../widget/facility/ShipmentScreens.xml | 32 +++++++++++-- 2 files changed, 37 insertions(+), 43 deletions(-) diff --git a/applications/product/webapp/facility/shipment/ShipmentManifest.fo.ftl b/applications/product/webapp/facility/shipment/ShipmentManifest.fo.ftl index a72837d89c..74a61aa84b 100644 --- a/applications/product/webapp/facility/shipment/ShipmentManifest.fo.ftl +++ b/applications/product/webapp/facility/shipment/ShipmentManifest.fo.ftl @@ -17,40 +17,11 @@ specific language governing permissions and limitations under the License. --> <#escape x as x?xml> - - - - - - - - <#if hasPermission> <#list shipmentPackageDatas as shipmentPackageData> <#assign shipmentRouteSegment = shipmentPackageData.get("shipmentRouteSegment")> <#assign shipmentPackage = shipmentPackageData.get("shipmentPackage")> - <#assign shipmentItemsDatas = shipmentPackageData.get("shipmentItemsDatas")> - - - - ${uiLabelMap.CommonPage} - - - - - ${screens.render("component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo")} - - - - - - 8mm - - - - + <#assign shipmentItemsDatas = shipmentPackageData.get("shipmentItemsDatas")> ${uiLabelMap.ProductShipmentManifest} #${shipmentId} @@ -110,7 +81,7 @@ under the License. - + @@ -118,18 +89,18 @@ under the License. - + ${uiLabelMap.FormFieldTitle_shipmentPackageSeqId}: ${shipmentPackage.shipmentPackageSeqId} <#if shipmentPackage.weight?has_content && shipmentPackage.weightUomId?has_content> <#assign weightUom = shipmentPackage.getRelatedOne("WeightUom")> - ${uiLabelMap.ProductWeight}: ${shipmentPackage.weight} ${weightUom.get("description",locale)} + ${uiLabelMap.ProductWeight}: ${shipmentPackage.weight} ${weightUom.get("description",locale)} - + @@ -158,9 +129,9 @@ under the License. <#list shipmentItemsDatas as shipmentItemsData> - <#assign shipmentItem = shipmentItemsData.get("shipmentItem")> - <#assign shippedQuantity = shipmentItemsData.get("shippedQuantity")> - <#assign packageQuantity = shipmentItemsData.get("packageQuantity")> + <#assign shipmentItem = shipmentItemsData.get("shipmentItem")> + <#assign shippedQuantity = shipmentItemsData.get("shippedQuantity")> + <#assign packageQuantity = shipmentItemsData.get("packageQuantity")> <#assign product = shipmentItem.getRelatedOne("Product")> <#assign itemIssuances = shipmentItem.getRelated("ItemIssuance")> @@ -196,13 +167,10 @@ under the License. - - <#else> ${uiLabelMap.ProductFacilityViewPermissionError} - diff --git a/applications/product/widget/facility/ShipmentScreens.xml b/applications/product/widget/facility/ShipmentScreens.xml index 7c044325bf..db54982b47 100644 --- a/applications/product/widget/facility/ShipmentScreens.xml +++ b/applications/product/widget/facility/ShipmentScreens.xml @@ -351,9 +351,35 @@ under the License.