📄 reconcileaccounts.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 * * @author Leon Torres (leon@opoensourcestrategies.com)--><#-- TODO: probably some kind of permission checking to see that this userLogin can view such and such reports --><div class="tabletext"><script language="javascript">function submitReconcile(form) { form.action="<@ofbizUrl>reconcileAccountForm</@ofbizUrl>"; form.submit();}function submitViewBalance(form) { form.action="<@ofbizUrl>viewGlAccountBalance</@ofbizUrl>"; form.submit();}// this should be a common javascript function for currency fields (use onClick or onBlur)function validateCurrency(element, defaultValue) { val = (element.value - 0); if (isNaN(val)) { val = (defaultValue - 0); if (isNaN(val)) { element.value = "0.00"; } else { element.value = val.toFixed(2); } } element.value = val.toFixed(2);}</script><#if glAccountOrgList?exists><form method="POST" name="reconcileForm" action="reconcileAccountForm"> <#-- action set by javascript --><input type="hidden" name="organizationPartyId" value="${organizationPartyId}"/><table class="calendartable" border="0" cellpadding="2" cellspacing="0"><tr> <td class="tableheadtext">Select an Account</td> <td> </td> <td> <select name="glAccountId" class="selectBox"> <#list glAccountOrgList as glAccountOrg> <#assign glAccount = glAccountOrg.getRelatedOneCache("GlAccount")/> <#assign selected = ""/> <#if glAccountId?exists && glAccountId == glAccountOrg.glAccountId><#assign selected="selected"/></#if> <option value="${glAccountOrg.glAccountId}" ${selected}> ${glAccount.getString("accountCode")?default("")}: ${glAccount.getString("accountName")?default("")} (${glAccount.getString("glAccountId")?default("")}) </option> </#list> </select> </td></tr><tr> <td class="tableheadtext">As of date</td> <td> </td> <td> <input type='text' size='25' class='inputBox' name='reconciledDate' value='${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()}'/> <a href="javascript:call_cal(document.reconcileForm.reconciledDate, '')"> <img src='/images/cal.gif' width='16' height='16' border='0' alt='Calendar'> </a> </td></tr><tr> <td class="tableheadtext">Ending balance</td> <td> </td> <td> <input type='text' size='25' class='inputBox' name='reconciledBalance' value='0.00' onChange="javascript:validateCurrency(this, '0.00')"> </td></tr><tr><td colspan="3"> </td></tr><tr> <td> </td> <td> </td> <td> <input name="viewbalance" type="button" class="smallSubmit" value="View Balance" onClick="javascript:submitViewBalance(this.form)"/> <input name="reconcile" type="button" class="smallSubmit" value="Reconcile" onClick="javascript:submitReconcile(this.form)"/> </td></tr></table></form></#if></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -