(OFBIZ-7949) For improved FTL code readability. Here is the first patch for the effort. There are still files which are required to be formatted. Thanks: Vaibhav Jain for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761135 13f79535-47bb-0310-9956-ffa450edef68
132 lines
4.1 KiB
Plaintext
132 lines
4.1 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<table border="0" cellpadding="1">
|
|
<tr>
|
|
<td align="right" width="25%">
|
|
<div class="tableheadtext">Account Number:</div>
|
|
</td>
|
|
<td>
|
|
<div>${ownedFinAccount.finAccountId}</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<div class="tableheadtext">Currency:</div>
|
|
</td>
|
|
<td>
|
|
<div>${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<div class="tableheadtext">Date Opened:</div>
|
|
</td>
|
|
<td>
|
|
<div>${ownedFinAccount.fromDate!}</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<div class="tableheadtext">Status:</div>
|
|
</td>
|
|
<td>
|
|
<div>${(finAccountStatusItem.description)?default("Active")}</div>
|
|
</td>
|
|
</tr>
|
|
<#if ownedFinAccount.replenishLevel??>
|
|
<tr>
|
|
<td align="right">
|
|
<div class="tableheadtext">Replenish Level:</div>
|
|
</td>
|
|
<td>
|
|
<div>${ownedFinAccount.replenishLevel}</div>
|
|
</td>
|
|
</tr>
|
|
</#if>
|
|
</table>
|
|
|
|
<table border="0" cellpadding="1" border="2">
|
|
<tr>
|
|
<th>Transaction ${uiLabelMap.CommonDate}</th>
|
|
<th>ID</th>
|
|
<th>Order Item</th>
|
|
<th>Payment</th>
|
|
<th>Type</th>
|
|
<th>Amount</th>
|
|
</tr>
|
|
<#list ownedFinAccountTransList as ownedFinAccountTrans>
|
|
<#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
|
|
<#assign displayAmount = ownedFinAccountTrans.amount/>
|
|
<#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
|
|
<#assign displayAmount = -displayAmount/>
|
|
</#if>
|
|
<tr>
|
|
<td>${ownedFinAccountTrans.transactionDate!}</td>
|
|
<td>${ownedFinAccountTrans.finAccountTransId}</td>
|
|
<td>
|
|
<#if ownedFinAccountTrans.orderId?has_content>
|
|
${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}
|
|
<#else>
|
|
</#if>
|
|
</td>
|
|
<td><#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else> </#if></td>
|
|
<td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}</td>
|
|
<td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
|
|
</tr>
|
|
</#list>
|
|
<tr>
|
|
<th>Actual Balance</th>
|
|
<td> </td>
|
|
<td> </td>
|
|
<th><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></th>
|
|
</tr>
|
|
</table>
|
|
|
|
<#if ownedFinAccountAuthList?has_content>
|
|
<table border="0" cellpadding="1">
|
|
<tr>
|
|
<th>Authorization ${uiLabelMap.CommonDate}</th>
|
|
<th>ID</th>
|
|
<th>Expires</th>
|
|
<th>Amount</th>
|
|
</tr>
|
|
<tr>
|
|
<td>Actual Balance</td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></td>
|
|
</tr>
|
|
<#list ownedFinAccountAuthList as ownedFinAccountAuth>
|
|
<tr>
|
|
<td>${ownedFinAccountAuth.authorizationDate!}</td>
|
|
<td>${ownedFinAccountAuth.finAccountAuthId}</td>
|
|
<td>${ownedFinAccountAuth.thruDate!}</td>
|
|
<td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
|
|
</tr>
|
|
</#list>
|
|
<tr>
|
|
<th>Available Balance</th>
|
|
<td> </td>
|
|
<td> </td>
|
|
<th><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></th>
|
|
</tr>
|
|
</table>
|
|
</#if>
|