From 3d9ea91eb2d862fa991c019feb9e1f594ec6d765 Mon Sep 17 00:00:00 2001 From: Pranay Pandey Date: Tue, 5 Jul 2016 13:27:14 +0000 Subject: [PATCH] [OFBIZ-7679] No functional change. Asset Maintenance FTL reformatting for better readability. Thanks Vaibhav Jain for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751466 13f79535-47bb-0310-9956-ffa450edef68 --- .../template/PrintFixedAssetMaint.fo.ftl | 342 ++++++++++-------- 1 file changed, 183 insertions(+), 159 deletions(-) diff --git a/specialpurpose/assetmaint/template/PrintFixedAssetMaint.fo.ftl b/specialpurpose/assetmaint/template/PrintFixedAssetMaint.fo.ftl index 73d99a0087..a5c5281494 100644 --- a/specialpurpose/assetmaint/template/PrintFixedAssetMaint.fo.ftl +++ b/specialpurpose/assetmaint/template/PrintFixedAssetMaint.fo.ftl @@ -19,197 +19,221 @@ under the License. <#escape x as x?xml> - <#-- Print FixedAsset Information --> - - - - - - ${uiLabelMap.AccountingFixedAsset} - - <#if fixedAsset?has_content> + <#-- Print FixedAsset Information --> + + + + - ${uiLabelMap.AccountingFixedAssetId} - ${fixedAssetId} - - <#if fixedAsset.createdStamp?has_content> - - ${uiLabelMap.CommonDate} - ${fixedAsset.createdStamp?string.short} + + ${uiLabelMap.AccountingFixedAsset} + + <#if fixedAsset?has_content> + + ${uiLabelMap.AccountingFixedAssetId} + ${fixedAssetId} + + <#if fixedAsset.createdStamp?has_content> + + ${uiLabelMap.CommonDate} + ${fixedAsset.createdStamp?string.short} + + + <#if fixedAsset.fixedAssetName?has_content> + + ${uiLabelMap.AccountingFixedAssetName} + ${fixedAsset.fixedAssetName!} + + + <#if fixedAsset.serialNumber?has_content> + + ${uiLabelMap.FormFieldTitle_serialNumber} + ${fixedAsset.serialNumber!} + + + <#if fixedAsset.locatedAtFacilityId?has_content> + + ${uiLabelMap.FormFieldTitle_locatedAtFacilityId} + ${maintenance.facilityName!} + + + <#if fixedAssetIdentValue?has_content> + + ${uiLabelMap.AccountingFixedAssetIdents} + ${fixedAssetIdentValue!} + + - <#if fixedAsset.fixedAssetName?has_content> - - ${uiLabelMap.AccountingFixedAssetName} - ${fixedAsset.fixedAssetName!} - - - <#if fixedAsset.serialNumber?has_content> - - ${uiLabelMap.FormFieldTitle_serialNumber} - ${fixedAsset.serialNumber!} - - - <#if fixedAsset.locatedAtFacilityId?has_content> - - ${uiLabelMap.FormFieldTitle_locatedAtFacilityId} - ${maintenance.facilityName!} - - - <#if fixedAssetIdentValue?has_content> - - ${uiLabelMap.AccountingFixedAssetIdents} - ${fixedAssetIdentValue!} - - - - - - <#-- End Print FixedAsset Information --> + + + <#-- End Print FixedAsset Information --> - <#-- Start Print FixedAsset Maintenance Information --> - - - - - - ${uiLabelMap.AccountingFixedAssetMaint} - - <#if fixedAssetMaint?has_content> + <#-- Start Print FixedAsset Maintenance Information --> + + + + - ${uiLabelMap.AccountingFixedAssetMaintSeqId} - ${fixedAssetMaint.maintHistSeqId} - - - ${uiLabelMap.CommonStatus} - ${statusItemDesc} - - <#if productMaintName?has_content> - - ${uiLabelMap.CommonName} - ${productMaintName!} + + ${uiLabelMap.AccountingFixedAssetMaint} + + <#if fixedAssetMaint?has_content> + + ${uiLabelMap.AccountingFixedAssetMaintSeqId} + ${fixedAssetMaint.maintHistSeqId} + + + ${uiLabelMap.CommonStatus} + ${statusItemDesc} + + <#if productMaintName?has_content> + + ${uiLabelMap.CommonName} + ${productMaintName!} + + + <#if productMaintTypeDesc?has_content> + + ${uiLabelMap.AccountingFixedAssetMaintType} + ${productMaintTypeDesc!} + + + + + ${uiLabelMap.AccountingFixedAssetMaintIntervalQuantity} + + + ${fixedAssetMaint.intervalQuantity!} ${intervalUomDesc!} + + + <#if productMeterTypeDesc?has_content> + + Meter type + ${productMeterTypeDesc!} + + - <#if productMaintTypeDesc?has_content> - - ${uiLabelMap.AccountingFixedAssetMaintType} - ${productMaintTypeDesc!} - - - - ${uiLabelMap.AccountingFixedAssetMaintIntervalQuantity} - ${fixedAssetMaint.intervalQuantity!} ${intervalUomDesc!} - - <#if productMeterTypeDesc?has_content> - - Meter type - ${productMeterTypeDesc!} - - - - - -<#-- End Print FixedAsset Maintenance Information --> + + + <#-- End Print FixedAsset Maintenance Information --> -<#-- Start Print Maintenance Schedule Information --> - - - - - - - - ${uiLabelMap.WorkEffortSummary} - - <#if scheduleWorkEffort?has_content> + <#-- Start Print Maintenance Schedule Information --> + + + + + + - ${uiLabelMap.FormFieldTitle_actualStartDate} + + ${uiLabelMap.WorkEffortSummary} + + + <#if scheduleWorkEffort?has_content> + + ${uiLabelMap.FormFieldTitle_actualStartDate} <#if scheduleWorkEffort.actualStartDate?has_content> <#assign actualStartDate = scheduleWorkEffort.get("actualStartDate")> - ${actualStartDate?string.short} + ${actualStartDate?string.short} <#else> - + - ${uiLabelMap.FormFieldTitle_actualCompletionDate} + ${uiLabelMap.FormFieldTitle_actualCompletionDate} <#if scheduleWorkEffort.actualCompletionDate?has_content> <#assign actualCompletionDate = scheduleWorkEffort.get("actualCompletionDate")> ${actualCompletionDate?string.short} <#else> - + - - <#assign workEffortPurposeType = scheduleWorkEffort.getRelatedOne("WorkEffortPurposeType", false)!> - <#if workEffortPurposeType?has_content> - - ${uiLabelMap.FormFieldTitle_workEffortPurposeTypeId} - ${workEffortPurposeType.workEffortPurposeTypeId}--${workEffortPurposeType.description} - + + <#assign workEffortPurposeType = scheduleWorkEffort.getRelatedOne("WorkEffortPurposeType", false)!> + <#if workEffortPurposeType?has_content> + + ${uiLabelMap.FormFieldTitle_workEffortPurposeTypeId} + + + ${workEffortPurposeType.workEffortPurposeTypeId}--${workEffortPurposeType.description} + + + + + + ${uiLabelMap.CommonName} + + ${scheduleWorkEffort.workEffortName!} + + + + ${uiLabelMap.CommonDescription} + + ${scheduleWorkEffort.description!} + + - - ${uiLabelMap.CommonName} - ${scheduleWorkEffort.workEffortName!} - - - ${uiLabelMap.CommonDescription} - ${scheduleWorkEffort.description!} - - - - -<#-- End Print Maintenance Schedule Information --> + + + <#-- End Print Maintenance Schedule Information --> - <#if itemIssuanceList?has_content> - - - - - - ${uiLabelMap.AssetMaintItemIssuance} - ${uiLabelMap.OrderQuantity} - - - - <#list itemIssuanceList as itemIssuance> - <#assign productId = itemIssuance.productId!> - <#assign quantity = itemIssuance.quantity?default(0)> + <#if itemIssuanceList?has_content> + + + + + + + ${uiLabelMap.AssetMaintItemIssuance} + + + ${uiLabelMap.OrderQuantity} + + + + + <#list itemIssuanceList as itemIssuance> + <#assign productId = itemIssuance.productId!> + <#assign quantity = itemIssuance.quantity?default(0)> <#if productId??> - ${itemIssuance.productId?default("N/A")} - ${itemIssuance.internalName!} - ${itemIssuance.description!} - ${itemIssuance.comments!} + ${itemIssuance.productId?default("N/A")} - ${itemIssuance.internalName!} - + ${itemIssuance.description!} - ${itemIssuance.comments!} ${quantity} - - - - + + + + - <#if notes?has_content> - - - - - ${uiLabelMap.WorkEffortNotes} - - - - <#list notes as note> + <#if notes?has_content> + + + - - Author : ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)} - Date : ${note.noteDateTime?string.short} - <#escape x as x?html> - ${note.noteInfo!} - - + ${uiLabelMap.WorkEffortNotes} - - - - + + + <#list notes as note> + + + Author : ${Static[ + "org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)} + Date : ${note.noteDateTime?string.short} + <#escape x as x?html> + ${note.noteInfo!} + + + + + + +