Thanks Devanshu Vyas for your contribution. (OFBIZ-9254) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812285 13f79535-47bb-0310-9956-ffa450edef68
163 lines
12 KiB
Plaintext
163 lines
12 KiB
Plaintext
<#--
|
|
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="8.5in"
|
|
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 text-align="center">${screens.render("component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo")}</fo:block>
|
|
<#if acctgTransList?has_content>
|
|
<fo:block>${uiLabelMap.AccountingAcctgTransFor}
|
|
<#if (organizationPartyId)??>
|
|
<#assign partyName = (delegator.findOne("PartyNameView", {"partyId" : organizationPartyId}, false))!>
|
|
<#if "PERSON" == partyName.partyTypeId>
|
|
${(partyName.firstName)!} ${(partyName.lastName)!}
|
|
<#elseif "PARTY_GROUP" == (partyName.partyTypeId)!>
|
|
${(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="20mm"/>
|
|
<fo:table-column column-width="15mm"/>
|
|
<fo:table-column column-width="25mm"/>
|
|
<fo:table-column column-width="20mm"/>
|
|
<fo:table-column column-width="20mm"/>
|
|
<fo:table-column column-width="10mm"/>
|
|
<fo:table-column column-width="25mm"/>
|
|
<fo:table-header>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_theirAcctgTransId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="2pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_transactionDate}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_acctgTransTypeId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_glFiscalTypeId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_invoiceId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_paymentId} - (${uiLabelMap.AccountingPaymentType})</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_workEffortId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_shipmentId}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_isPosted}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="6pt">${uiLabelMap.FormFieldTitle_postedDate}</fo:block>
|
|
</fo:table-cell>
|
|
</fo:table-header>
|
|
<fo:table-body>
|
|
<#list acctgTransList as acctgTrans>
|
|
<fo:table-row>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">${(acctgTrans.acctgTransId)!}</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
<#assign dateFormat = Static["java.text.DateFormat"].LONG/>
|
|
<#assign transactionDate = Static["java.text.DateFormat"].getDateInstance(dateFormat, locale).format((acctgTrans.transactionDate)!)/>
|
|
${(transactionDate)!}
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
<#if (acctgTrans.acctgTransTypeId)??>
|
|
<#assign acctgTransType = (delegator.findOne("AcctgTransType", {"acctgTransTypeId" : (acctgTrans.acctgTransTypeId)!}, false))!/>
|
|
<#if acctgTransType?has_content>${acctgTransType.description}</#if>
|
|
</#if>
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
<#if (acctgTrans.glFiscalTypeId)??>
|
|
<#assign glFiscalType = (delegator.findOne("GlFiscalType", {"glFiscalTypeId" : (acctgTrans.glFiscalTypeId)!}, false))!/>
|
|
${(glFiscalType.description)!}
|
|
</#if>
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
${(acctgTrans.invoiceId)!}
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
<#if (acctgTrans.paymentId)??>
|
|
<#assign paymentType = (delegator.findOne("Payment", {"paymentId" : (acctgTrans.paymentId)!}, false)).getRelatedOne("PaymentType", false)/>
|
|
${(acctgTrans.paymentId)!}<#if (paymentType?has_content)> -(${(paymentType.description)!})</#if>
|
|
</#if>
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
${(acctgTrans.workEffortId)!}
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
${(acctgTrans.shipmentId)!}
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
${(acctgTrans.isPosted)!}
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
<fo:table-cell border="1pt solid" border-width=".1mm">
|
|
<fo:block text-align="center" font-size="5pt">
|
|
<#if acctgTrans.postedDate?has_content>
|
|
<#assign dateFormat = Static["java.text.DateFormat"].LONG/>
|
|
<#assign postedDate = Static["java.text.DateFormat"].getDateInstance(dateFormat, locale).format((acctgTrans.postedDate)!)/>
|
|
${(postedDate)!}
|
|
</#if>
|
|
</fo:block>
|
|
</fo:table-cell>
|
|
</fo:table-row>
|
|
</#list>
|
|
</fo:table-body>
|
|
</fo:table>
|
|
</fo:block>
|
|
<#else>
|
|
<fo:block text-align="center">${uiLabelMap.AccountingNoAcctgTransFound}</fo:block>
|
|
</#if>
|
|
</fo:flow>
|
|
</fo:page-sequence>
|
|
</fo:root>
|
|
</#escape>
|