📄 trialbalance.ftl
字号:
<#-- * Copyright (C) 2006 Open Source Strategies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA--><br/><table border="0" cellpadding="0"> <tr> <td colspan="3" class="tableheadtext" align="center">${uiLabelMap.AccountingTrialBalance} for ${parameters.organizationName?if_exists} (${organizationPartyId})</td> </tr> <tr><td colspan="3" class="tabletext" align="center">${uiLabelMap.CommonFor} ${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()?string("EEEE, MMMM dd, yyyy")}</td></tr> <tr><td colspan="3"> </td></tr> <tr> <th class="tableheadtext">Account</th> <th class="tableheadtext">Debit</th> <th class="tableheadtext">Credit</th></tr><#assign currencyUomId = parameters.orgCurrencyUomId> <!-- for some reason, putting this in context in main-decorator.bsh does not work --><#assign debitTotal=0/><#assign creditTotal=0/><#list trialBalances as balance> <#if (balance.postedBalance > 0.01) || (balance.postedBalance < -0.01)> <#-- skip the "gremlin" entries --> <tr> <td class="tabletext" width="70%" nowrap> <a href="<@ofbizUrl>AccountActivitiesDetail?glAccountId=${balance.glAccountId}&organizationPartyId=${organizationPartyId}</@ofbizUrl>">${balance.getRelatedOne("GlAccount").getString("accountCode")}</a> ${balance.getRelatedOne("GlAccount").getString("accountName")} <#if Static["org.ofbiz.accounting.util.UtilAccounting"].isDebitAccount(balance.getRelatedOne("GlAccount"))> <td class="tabletext" align="right" width="15%"><@ofbizCurrency amount=balance.get("postedBalance") isoCode=currencyUomId/></td><td width="15%"> </td> <#assign debitTotal = debitTotal + balance.postedBalance?default(0.0)/> <#else> <td> </td><td class="tabletext" align="right"><@ofbizCurrency amount=balance.get("postedBalance") isoCode=currencyUomId/></td> <#assign creditTotal = creditTotal + balance.postedBalance?default(0.0)/> </#if> </tr> </#if></#list><tr><td colspan="5"><hr/></td></tr> <tr> <td> </td> <td class="tabletext" align="right"><@ofbizCurrency amount=debitTotal isoCode=currencyUomId/></td> <td class="tabletext" align="right"><@ofbizCurrency amount=creditTotal isoCode=currencyUomId/></td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -