applied patches from Joe Eckard JIRA Issue OFBIZ-924

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@532060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Zeneski
2007-04-24 20:00:32 +00:00
parent 85747a3ec2
commit 4554df64f6
4 changed files with 172 additions and 1 deletions
@@ -0,0 +1,106 @@
<#--
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.
-->
<p>
<b>Account Number:</b> <a href="/accounting/control/EditFinAccount?finAccountId=${ownedFinAccount.finAccountId}${externalKeyParam}"
class="smallSubmit">${ownedFinAccount.finAccountId}</a>
<b>Type:</b> ${(ownedFinAccountType.description)?default('N/A')}
<b>Name:</b> ${ownedFinAccount.finAccountName?if_exists}
</p>
<p>
<b>Currency:</b> ${(accountCurrencyUom.description)?if_exists} [${ownedFinAccount.currencyUomId?if_exists}]
<b>Date Opened:</b> ${ownedFinAccount.fromDate?if_exists}
<b>Is Frozen:</b> ${ownedFinAccount.isFrozen?default('N')}
<#if ownedFinAccount.replenishLevel?exists>
<b>Replenish Level:</b> <@ofbizCurrency amount=ownedFinAccount.replenishLevel isoCode=ownedFinAccount.currencyUomId/>
</#if>
</p>
<br />
<table id="fa-transactions" class="basic-table" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td>Transaction ${uiLabelMap.CommonDate}</td>
<td>ID</td>
<td>Order Item</td>
<td>Payment</td>
<td>Type</td>
<td>Amount</td>
</tr>
</thead>
<tbody>
<#list ownedFinAccountTransList as ownedFinAccountTrans>
<#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne('FinAccountTransType')>
<#assign displayAmount = ownedFinAccountTrans.amount>
<#if ownedFinAccountTrans.finAccountTransTypeId == 'WITHDRAWAL'>
<#assign displayAmount = -displayAmount>
</#if>
<tr>
<td>${ownedFinAccountTrans.transactionDate?if_exists}</td>
<td>${ownedFinAccountTrans.finAccountTransId}</td>
<td>${ownedFinAccountTrans.orderId?if_exists}:${ownedFinAccountTrans.orderItemSeqId?if_exists}</td>
<td>${ownedFinAccountTrans.paymentId?if_exists}</td>
<td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)?if_exists}</td>
<td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
</tbody>
<tfoot>
<tr><td colspan="6"><hr /></td></tr>
<tr>
<td colspan="5"><b>Actual Balance</b></td>
<td><b><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></b></td>
</tr>
</tfoot>
</table>
<#if ownedFinAccountAuthList?has_content>
<br />
<table id="fa-authorizations" class="basic-table" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td>Authorization ${uiLabelMap.CommonDate}</td>
<td>ID</td>
<td>Expires</td>
<td>Amount</td>
</tr>
</thead>
<tbody>
<#list ownedFinAccountAuthList as ownedFinAccountAuth>
<tr>
<td>${ownedFinAccountAuth.authorizationDate?if_exists}</td>
<td>${ownedFinAccountAuth.finAccountAuthId}</td>
<td>${ownedFinAccountAuth.thruDate?if_exists}</td>
<td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
</tbody>
<tfoot>
<tr><td colspan="4"><hr /></td></tr>
<tr>
<td colspan="3"><b>Actual Balance</b></td>
<td><b><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></b></td>
</tr>
<tr>
<td colspan="3"><b>Available Balance</b></td>
<td><b><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></b></td>
</tr>
</tfoot>
</table>
</#if>
@@ -406,6 +406,9 @@ under the License.
</div>
</div>
<#-- Financial Account Summary -->
${screens.render('component://party/widget/partymgr/PartyScreens.xml#FinAccountSummary')}
<#-- UserLogins -->
<div id="partyUserLogins" class="screenlet">
<div class="screenlet-title-bar">
@@ -100,6 +100,8 @@ under the License.
text="${uiLabelMap.AccountingPaymentsSent}"/>
<link target="/accounting/control/findPayments?lookupFlag=Y&amp;hideFields=Y&amp;partyIdFrom=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.AccountingPaymentsReceived}"/>
<link target="/accounting/control/FindFinAccount?ownerPartyId=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingFinAccounts}"/>
</widgets>
</section>
</container>
@@ -706,5 +706,65 @@ under the License.
</widgets>
</section>
</screen>
<screen name="FinAccountSummary">
<section>
<actions>
<entity-condition entity-name="FinAccount" list-name="ownedFinAccountList" filter-by-date="true">
<condition-expr field-name="ownerPartyId" operator="equals" env-name="parameters.partyId"/>
<order-by field-name="-fromDate"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<not>
<if-empty field-name="ownedFinAccountList"/>
</not>
</condition>
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<container id="fin-account-summary" style="screenlet">
<container style="screenlet-header">
<label style="boxhead" text="${uiLabelMap.PageTitleFinancialAccountSummary}"/>
</container>
<container style="screenlet-body">
<iterate-section entry-name="ownedFinAccount" list-name="ownedFinAccountList">
<section>
<actions>
<entity-condition entity-name="FinAccountTrans" list-name="ownedFinAccountTransList">
<condition-expr field-name="finAccountId" env-name="ownedFinAccount.finAccountId"/>
<order-by field-name="transactionDate"/>
</entity-condition>
<entity-condition entity-name="FinAccountAuth" list-name="ownedFinAccountAuthList" filter-by-date="true">
<condition-expr field-name="finAccountId" env-name="ownedFinAccount.finAccountId"/>
<order-by field-name="authorizationDate"/>
</entity-condition>
<entity-one entity-name="Uom" value-name="accountCurrencyUom" auto-field-map="false" use-cache="true">
<field-map field-name="uomId" env-name="ownedFinAccount.currencyUomId"/>
</entity-one>
<entity-one entity-name="FinAccountType" value-name="ownedFinAccountType" auto-field-map="false" use-cache="true">
<field-map field-name="finAccountTypeId" env-name="ownedFinAccount.finAccountTypeId"/>
</entity-one>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/FinAccountDetail.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</iterate-section>
</container>
</container>
</widgets>
</section>
</widgets>
</section>
</screen>
</screens>