Author: mor
Date: Thu Jul 9 05:11:04 2009 New Revision: 792401 URL: http://svn.apache.org/viewvc?rev=792401&view=rev Log: Added missing file for CSV and PDF export of Chart of Accounts, part of OFBIZ-2681 (https://issues.apache.org/jira/browse/OFBIZ-2681) Added: ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl (with props) Added: ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl?rev=792401&view=auto ============================================================================== --- ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl (added) +++ ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl Thu Jul 9 05:11:04 2009 @@ -0,0 +1,156 @@ +<#-- +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:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master master-name="main" page-height="8in" page-width="11in" + margin-top="0.1in" margin-bottom="1in" margin-left="0.2in" margin-right="0.5in"> + <fo:region-body margin-top="1in"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="main"> + <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> + <fo:block align="center">${screens.render("component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo")}</fo:block> + <#if glAccountOrgAndClassList?has_content> + <fo:block>${uiLabelMap.AccountingChartOfAcctsFor} + <#if (organizationPartyId)??> + <#assign partyName = (delegator.findOne("PartyNameView", {"partyId" : organizationPartyId}, false))!> + <#if partyName.partyTypeId == "PERSON"> + ${(partyName.firstName)!} ${(partyName.lastName)!} + <#elseif (partyName.partyTypeId)! == "PARTY_GROUP"> + ${(partyName.groupName)!} + </#if> + </#if> + </fo:block> + <fo:block> + <fo:table> + <fo:table-column column-width="15mm"/> + <fo:table-column column-width="20mm"/> + <fo:table-column column-width="30mm"/> + <fo:table-column column-width="30mm"/> + <fo:table-column column-width="20mm"/> + <fo:table-column column-width="15mm"/> + <fo:table-column column-width="25mm"/> + <fo:table-column column-width="35mm"/> + <fo:table-column column-width="30mm"/> + <fo:table-column column-width="15mm"/> + <fo:table-column column-width="15mm"/> + <fo:table-header> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glAccountId}</fo:block> + </fo:table-cell> + <fo:table-cell border="2pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glAccountTypeId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glAccountClassId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glResourceTypeId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glXbrlClassId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_parentGlAccountId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_accountCode}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_accountName}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.CommonDescription}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.AccountingProductId}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_postedBalance}</fo:block> + </fo:table-cell> + </fo:table-header> + <fo:table-body> + <#list glAccountOrgAndClassList as glAccountOrgAndClass> + <fo:table-row> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.glAccountId)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt"> + <#if (glAccountOrgAndClass.glAccountTypeId)??> + <#assign glAccountType = (delegator.findOne("GlAccountType", {"glAccountTypeId" : (glAccountOrgAndClass.glAccountTypeId)!}, false))!> + ${(glAccountType.description)!} + </#if> + </fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt"> + <#if (glAccountOrgAndClass.glAccountClassId)??> + <#assign glAccountClass = (delegator.findOne("GlAccountClass", {"glAccountClassId" : (glAccountOrgAndClass.glAccountClassId)!}, false))!> + ${(glAccountClass.description)!} + </#if> + </fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt"> + <#if (glAccountOrgAndClass.glResourceTypeId)??> + <#assign glResourceType = (delegator.findOne("GlResourceType", {"glResourceTypeId" : (glAccountOrgAndClass.glResourceTypeId)!}, false))!> + ${(glResourceType.description)!} + </#if> + </fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt"> + <#if (glAccountOrgAndClass.glXbrlClassId)??> + <#assign glXbrlClass = (delegator.findOne("GlXbrlClass", {"glXbrlClassId" : (glAccountOrgAndClass.glXbrlClassId)!}, false))!> + ${(glXbrlClass.description)!} + </#if> + </fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.parentGlAccountId)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.accountCode)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.accountName)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.description)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.productId)!}</fo:block> + </fo:table-cell> + <fo:table-cell border="1pt solid" border-width=".1mm"> + <fo:block text-align="center" font-size="5pt">${(glAccountOrgAndClass.postedBalance)!}</fo:block> + </fo:table-cell> + </fo:table-row> + </#list> + </fo:table-body> + </fo:table> + </fo:block> + <#else> + <fo:block text-align="center">${uiLabelMap.AccountingNoRecordFound}</fo:block> + </#if> + </fo:flow> + </fo:page-sequence> + </fo:root> +</#escape> \ No newline at end of file Propchange: ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/applications/accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain |
Free forum by Nabble | Edit this page |