📄 billsettings.ftl
字号:
<#-- * Copyright (c) 2003-2005 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author Andy Zeneski (jaz@ofbiz.org) *@author Jean-Luc.Malet@nereide.biz (migration to uiLabelMap) *@version $Rev: 6189 $ *@since 2.2--><script language="JavaScript" type="text/javascript">function shipBillAddr() { if (document.checkoutsetupform.useShipAddr.checked) { window.location = "<@ofbizUrl>setBilling?createNew=Y&finalizeMode=payment&paymentMethodType=${paymentMethodType?if_exists}&useShipAddr=Y</@ofbizUrl>"; } else { window.location = "<@ofbizUrl>setBilling?createNew=Y&finalizeMode=payment&paymentMethodType=${paymentMethodType?if_exists}</@ofbizUrl>"; }}function toggleBillingAccount(box) { var amountName = "amount_" + box.value; box.checked = true; box.form.elements[amountName].disabled = false; for (var i = 0; i < box.form.elements[box.name].length; i++) { if (!box.form.elements[box.name][i].checked) { box.form.elements["amount_" + box.form.elements[box.name][i].value].disabled = true; } }}function makeExpDate() { document.checkoutsetupform.expireDate.value = document.checkoutsetupform.expMonth.options[document.checkoutsetupform.expMonth.selectedIndex].value + "/" + document.checkoutsetupform.expYear.options[document.checkoutsetupform.expYear.selectedIndex].value;}</script><#if security.hasEntityPermission("ORDERMGR", "_CREATE", session) || security.hasEntityPermission("ORDERMGR", "_PURCHASE_CREATE", session)><div class="screenlet"> <div class="screenlet-body"> <#if (paymentMethodList?has_content || billingAccountList?has_content) && !requestParameters.createNew?exists> <#-- initial screen when we have a associated party --> <form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="checkoutsetupform"> <input type="hidden" name="finalizeMode" value="payment"/> <table width="100%" cellpadding="1" cellspacing="0" border="0"> <tr> <td colspan="2"> <a href="<@ofbizUrl>setBilling?createNew=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonCreateNew}</a> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="EXT_OFFLINE" <#if checkOutPaymentId?exists && checkOutPaymentId == "EXT_OFFLINE">checked="checked"</#if>/> </td> <td colpan="2" width="50%"> <span class="tabletext">${uiLabelMap.OrderOfflineCheckMoney}</span> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <#if billingAccountList?has_content> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="EXT_BILLACT"/> </td> <td width="50%"> <span class="tabletext">${uiLabelMap.AccountingBillingAccountOnly}</span> </td> <td> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <#list billingAccountList as billingAccount> <#assign availableAmount = billingAccount.accountLimit?double - billingAccount.accountBalance?double> <tr> <td align="left" valign="top" width="1%"> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="${billingAccount.billingAccountId}" <#if (billingAccount.billingAccountId == selectedBillingAccount?default(""))>checked="checked"</#if>/> </td> <td align="left" valign="top" width="99%"> <div class="tabletext"> ${billingAccount.description?default("Bill Account")} #<b>${billingAccount.billingAccountId}</b> (<@ofbizCurrency amount=availableAmount isoCode=billingAccount.accountCurrencyUomId/>)<br/> <b>${uiLabelMap.AccountingBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${billingAccount.billingAccountId}" value="${availableAmount?double?string("##0.00")}" <#if !(billingAccount.billingAccountId == selectedBillingAccount?default(""))>disabled="disabled"</#if>/> </div> </td> </tr> </#list> <tr> <td align="left" valign="top" width="1%"> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="_NA" <#if (selectedBillingAccount?default("") == "N")>checked="checked"</#if>/> <input type="hidden" name="_NA_amount" value="0.00"/> </td> <td align="left" valign="top" width="99%"> <div class="tabletext">${uiLabelMap.AccountingNoBillingAccount}</div> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> </#if> <#if paymentMethodList?has_content> <#list paymentMethodList as paymentMethod> <#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD"> <#assign creditCard = paymentMethod.getRelatedOne("CreditCard")> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if checkOutPaymentId?exists && paymentMethod.paymentMethodId == checkOutPaymentId>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext"> CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)} <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> </span> </td> <td align="right"><a href="/partymgr/control/editcreditcard?party_id=${orderParty.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}" target="_blank" class="buttontext">${uiLabelMap.CommonUpdate}</a></td> </tr> <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT"> <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if checkOutPaymentId?exists && paymentMethod.paymentMethodId == checkOutPaymentId>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext"> EFT: ${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists} <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> </span> </td> <td align="right"><a href="/partymgr/control/editeftaccount?party_id=${orderParty.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}" target="_blank" class="buttontext">${uiLabelMap.CommonUpdate}</a></td> </tr> <tr><td colspan="2"><hr class="sepbar"/></td></tr> </#if> </#list> <#else> <div class="tabletext"><b>${uiLabelMap.AccountingNoPaymentMethods}</b></div> </#if> </table> </form> <#elseif paymentMethodType?exists || finalizeMode?default("") == "payment"> <#-- after initial screen; show detailed screens for selected type --> <#if paymentMethodType == "CC"> <#if postalAddress?has_content> <form method="post" action="<@ofbizUrl>updateCreditCardAndPostalAddress</@ofbizUrl>" name="checkoutsetupform"> <input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId?if_exists}"/> <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId?if_exists}"/> <#elseif requestParameters.useShipAddr?exists> <form method="post" action="<@ofbizUrl>createCreditCardOrderEntry</@ofbizUrl>" name="checkoutsetupform"> <#else> <form method="post" action="<@ofbizUrl>createCreditCardAndPostalAddress</@ofbizUrl>" name="checkoutsetupform"> </#if> </#if> <#if paymentMethodType == "EFT"> <#if postalAddress?has_content> <form method="post" action="<@ofbizUrl>updateEftAndPostalAddress</@ofbizUrl>" name="checkoutsetupform"> <input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId?if_exists}"/> <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId?if_exists}"/> <#elseif requestParameters.useShipAddr?exists> <form method="post" action="<@ofbizUrl>createEftAccount</@ofbizUrl>" name="checkoutsetupform"> <#else> <form method="post" action="<@ofbizUrl>createEftAndPostalAddress</@ofbizUrl>" name="checkoutsetupform"> </#if> </#if> <input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS"/> <input type="hidden" name="partyId" value="${cart.getPartyId()}"/> <input type="hidden" name="paymentMethodType" value="${paymentMethodType}"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -