UI to display financial accounts in checkout (for use as payment)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@522737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -40,6 +40,11 @@ if (cart != null) {
|
||||
}
|
||||
}
|
||||
|
||||
finAccounts = delegator.findByAnd("FinAccountAndRole", UtilMisc.toMap("partyId", partyId, "roleTypeId", "OWNER"));
|
||||
finAccounts = EntityUtil.filterByDate(finAccounts, UtilDateTime.nowTimestamp(), "roleFromDate", "roleThruDate", true);
|
||||
finAccounts = EntityUtil.filterByDate(finAccounts);
|
||||
context.put("finAccounts",finAccounts);
|
||||
|
||||
context.put("shoppingCart", cart);
|
||||
context.put("userLogin", userLogin);
|
||||
context.put("productStoreId", productStoreId);
|
||||
|
||||
@@ -354,12 +354,26 @@ function toggleBillingAccount(box) {
|
||||
</#if>
|
||||
<tr><td colspan="2"><hr class="sepbar"/></td></tr>
|
||||
|
||||
<#-- financial accounts -->
|
||||
<#list finAccounts as finAccount>
|
||||
<tr>
|
||||
<td width="1%">
|
||||
<input type="radio" name="checkOutPaymentId" value="FIN_ACCOUNT|${finAccount.finAccountId}" <#if "FIN_ACCOUNT" == checkOutPaymentId>checked="checked"</#if>/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<span class="tabletext">${uiLabelMap.FinancialAccount} #${finAccount.finAccountId}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#list>
|
||||
|
||||
<#if !paymentMethodList?has_content>
|
||||
<#if (!finAccounts?has_content)>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="tabletext"><b>${uiLabelMap.AccountingNoPaymentMethodsOnFile}.</b></div>
|
||||
</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#else>
|
||||
<#list paymentMethodList as paymentMethod>
|
||||
<#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
|
||||
|
||||
Reference in New Issue
Block a user