📄 customervendorbalances.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--><#if parties?exists><div style="border: 1px solid #999999; margin-top: 20px; margin-bottom: 20px;"></div><table border="0" cellpadding="0"> <tr> <td colspan="2" class="tabletext" align="center">${uiLabelMap.CommonFor} ${parameters.organizationName?if_exists} (${organizationPartyId})<br/> ${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()?string("EEEE, MMMM dd, yyyy")}</td> </tr> <tr><td colspan="2"> </td></tr> <tr> <th class="tableheadtext">${uiLabelMap.PartyParty}</th> <th class="tableheadtext">${uiLabelMap.CommonAmount}</th> </tr> <#assign totalAmount = 0> <#list parties as partyId> <#assign amount = balances.get(partyId)> <tr> <#-- the link is for 30 days before to today. TODO: make it configurable or a view pref --> <#-- this is a POST form to avoid parameter conflict issues with vendorStatement --> <form name="vendorStatement" method="POST" action="vendorStatement"> <input type="hidden" name="partyId" value="${partyId}"/> <input type="hidden" name="fromDate" value="${Static["org.ofbiz.base.util.UtilDateTime"].getDayStart(asOfDateTime, -30)?string("yyyy-MM-dd")}"/> <input type="hidden" name="thruDate" value="${Static["org.ofbiz.base.util.UtilDateTime"].getDayStart(asOfDateTime)?string("yyyy-MM-dd")}"/> <td class="tabletext">${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyId, false)} (<a href="javascript:document.vendorStatement.submit()">${partyId}</a>)</td> </form> <td class="tabletext" align="right"><@ofbizCurrency amount=amount isoCode=orgCurrencyUomId/></td> </tr> <#assign totalAmount = totalAmount + amount> </#list> <tr> <td> </td> <td><hr/></td> </tr> <tr> <td> </td> <td class="tableheadtext" align="right"><@ofbizCurrency amount=totalAmount isoCode=orgCurrencyUomId/></td> </tr></table></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -