⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editpayment.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 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--><!-- Prepare commands for Payment status change  --><#if paymentValue?has_content>  <#assign paymentStatusChangeAction = "">  <#if paymentValue.paymentId?has_content>    <#assign paymentStatusChangeAction = "<a class='buttontext' href='editPayment?paymentTypeId=" + paymentTypeId + "'>" + uiLabelMap.CommonCreateNew + "</a>">  </#if>   <#if paymentValue.paymentId?has_content && isDisbursement && paymentValue.statusId.equals("PMNT_NOT_PAID")>    <#assign paymentStatusChangeAction = paymentStatusChangeAction + "<a class='buttontext' href='setPaymentStatus?paymentId=" + paymentValue.paymentId + "&statusId=PMNT_SENT" + "'>" + uiLabelMap.FinancialsPaymentStatusToSent + "</a>">  </#if>  <#if paymentValue.paymentId?has_content && !isDisbursement && paymentValue.statusId.equals("PMNT_NOT_PAID")>    <#assign paymentStatusChangeAction = paymentStatusChangeAction + "<a class='buttontext' href='setPaymentStatus?paymentId=" + paymentValue.paymentId + "&statusId=PMNT_RECEIVED" + "'>" + uiLabelMap.FinancialsPaymentStatusToReceived + "</a>">  </#if>  <#if paymentValue.paymentId?has_content && paymentValue.statusId.equals("PMNT_NOT_PAID")>    <#assign paymentStatusChangeAction = paymentStatusChangeAction + "<a class='buttontext' href='setPaymentStatus?paymentId=" + paymentValue.paymentId + "&statusId=PMNT_CANCELLED" + "'>" + uiLabelMap.FinancialsPaymentStatusToCanceled + "</a>">  </#if>  <#if paymentValue.paymentId?has_content && (paymentValue.statusId.equals("PMNT_RECEIVED") || paymentValue.statusId.equals("PMNT_SENT"))>    <#assign paymentStatusChangeAction = paymentStatusChangeAction + "<a class='buttontext' href='setPaymentStatus?paymentId=" + paymentValue.paymentId + "&statusId=PMNT_CONFIRMED" + "'>" + uiLabelMap.FinancialsPaymentStatusToConfirmed + "</a>">  </#if></#if>  <div class="screenlet-header">    <div style="float: right;">      ${paymentStatusChangeAction?if_exists}    </div>        <div class="boxhead">    <#if isDisbursement>      ${uiLabelMap.FinancialsPayablesPayment}    <#else>        ${uiLabelMap.FinancialsReceivablesPayment}    </#if>      </div></div><#if paymentValue?has_content && paymentValue.paymentId?has_content>  <#assign formName = "updatePayment"><#else>  <#assign formName = "createPayment"></#if><form method="post" action="<@ofbizUrl>${formName}</@ofbizUrl>" name=${formName}><#if paymentValue?has_content && paymentValue.paymentId?has_content>  <input type="hidden" name="paymentId" value="${paymentValue.paymentId}"><#else>  <input type="hidden" name="statusId" value="PMNT_NOT_PAID"></#if><#if isDisbursement>  <input type="hidden" name="partyIdFrom" value="${organizationPartyId?if_exists}"><#else>  <input type="hidden" name="partyIdTo" value="${organizationPartyId?if_exists}"></#if><table border="0" cellpadding="2" cellspacing="0" width="100%">   <tr>     <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.AccountingPaymentType} </div></td>     <td width="2%">&nbsp;</td>     <td>       <div class="tabletext">         <select name="paymentTypeId" class="selectBox">           <#list paymentTypeList as paymentType>	         <option value="${paymentType.paymentTypeId}" <#if paymentValue?has_content && paymentValue.paymentTypeId?default("") == paymentType.paymentTypeId>SELECTED</#if>>${paymentType.get("description")}</option>	       </#list>         </select>       </div>     </td>   </tr>      <tr>     <td width="25%" align="right">       <div class="tableheadtext">         <#if isDisbursement>           ${uiLabelMap.FinancialsPayToParty}          <#else>             ${uiLabelMap.FinancialsReceiveFromParty}          </#if>       </div>     </td>     <td width="2%">&nbsp;</td>     <td nowrap>       <#if isDisbursement>         <input type="text" class="inputBox" name="partyIdTo" value="<#if paymentValue?has_content>${paymentValue.partyIdTo?if_exists}</#if>"/>         <a href="javascript:call_fieldlookup2(document.${formName}.partyIdTo,'LookupPartyName');">           <img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/>         </a>       <#else>         <input type="text" class="inputBox" name="partyIdFrom" value="<#if paymentValue?has_content>${paymentValue.partyIdFrom?if_exists}</#if>"/>         <a href="javascript:call_fieldlookup2(document.${formName}.partyIdFrom,'LookupPartyName');">           <img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/>         </a>       </#if>     </td>   </tr>         <#if paymentValue?has_content>     <input type="hidden" name="statusId" value="${paymentValue.statusId?if_exists}">     <#assign statusValue = paymentValue.getRelatedOne("StatusItem")>     <tr>       <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.FinancialsStatusId} </div></td>       <td width="2%">&nbsp;</td>       <td><div class="tabletext">${statusValue.description?if_exists}</div></td>     </tr>      </#if>      <tr>     <#if isDisbursement >       <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.AccountingPaymentMethod} </div></td>       <td width="2%">&nbsp;</td>       <td nowrap>         <select name="paymentMethodId" class="selectBox">	       <#list paymentMethodList as paymentMethod>	         <option value="${paymentMethod.get("paymentMethodId")?if_exists}"  <#if paymentValue?has_content && paymentValue.paymentMethodId?default("") == paymentMethod.paymentMethodId>SELECTED</#if>>${paymentMethod.description?if_exists} (${paymentMethod.paymentMethodId})</option>	       </#list>	     </select>       </td>     <#else>       <td width="20%" align="right" nowrap><div class="tableheadtext">${uiLabelMap.AccountingPaymentMethodType} </div></td>       <td width="2%">&nbsp;</td>       <td nowrap>         <select name="paymentMethodTypeId" class="selectBox">	       <#list paymentMethodTypeList as paymentMethodType>	         <option value="${paymentMethodType.get("paymentMethodTypeId")?if_exists}"  <#if paymentValue?has_content && paymentValue.paymentMethodTypeId?default("") == paymentMethodType.paymentMethodTypeId>SELECTED</#if>>${paymentMethodType.get("description")}</option>	       </#list>	     </select>       </td>     </#if>   </tr>      <tr>     <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.AccountingAmount} </div></td>     <td width="2%">&nbsp;</td>     <td nowrap><input type="text" class="inputBox" name="amount" value="<#if paymentValue?has_content>${paymentValue.amount?if_exists}</#if>"/>       <select name="currencyUomId" class="selectBox">	     <#list currencyUoms as currencyUom>	       <option value="${currencyUom.uomId}" <#if currencyUomId == currencyUom.uomId>SELECTED</#if>>${currencyUom.abbreviation}</option>	     </#list>	   </select>     </td>   </tr>      <tr>     <td width="25%" align="right"><div class="tableheadtext">${uiLabelMap.AccountingEffectiveDate} </div></td>     <td width="2%">&nbsp;</td>     <td nowrap>       <input type="text" class="inputBox" name="effectiveDate" value="<#if paymentValue?has_content>${paymentValue.effectiveDate?if_exists}</#if>"/>       <a href="javascript:call_cal(document.${formName}.effectiveDate, null);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"/></a>     </td>   </tr>      <tr>     <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.CommonComments} </div></td>     <td width="2%">&nbsp;</td>     <td width="80%" colspan="4"><textarea class="textAreaBox" cols="60" rows="2" name="comments"><#if paymentValue?has_content>${paymentValue.comments?if_exists}</#if></textarea></td>   </tr>      <tr>     <td width="20%" align="right"><div class="tableheadtext">${uiLabelMap.FinancialsPaymentRefNum} </div></td>     <td width="2%">&nbsp;</td>     <td nowrap><input type="text" class="inputBox" name="paymentRefNum" value="<#if paymentValue?has_content>${paymentValue.paymentRefNum?if_exists}</#if>"/></td>   </tr>      <tr>     <td width="20%" align="right"><div class="tableheadtext">&nbsp;</div></td>     <td width="2%">&nbsp;</td>     <td colspan="4">       <#if paymentId?has_content>         <input type="submit" onClick="javascript:document.updatePayment.submit()"  name="submitButton" value="${uiLabelMap.CommonUpdate}" class="smallSubmit">         <input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onClick="javascript:document.updatePayment.submit();"/>       <#else>         <input type="submit" onClick="javascript:document.createPayment.submit()"  name="submitButton" value="${uiLabelMap.CommonCreate}" class="smallSubmit">         <input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onClick="javascript:document.createPayment.submit();"/>       </#if>     </td>   </tr></table></form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -