Author: jaz
Date: Tue Apr 24 13:00:32 2007 New Revision: 532060 URL: http://svn.apache.org/viewvc?view=rev&rev=532060 Log: applied patches from Joe Eckard JIRA Issue OFBIZ-924 Added: ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl (with props) Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Added: ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl?view=auto&rev=532060 ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl (added) +++ ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl Tue Apr 24 13:00:32 2007 @@ -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> + Propchange: ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/applications/party/webapp/partymgr/party/FinAccountDetail.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl?view=diff&rev=532060&r1=532059&r2=532060 ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl Tue Apr 24 13:00:32 2007 @@ -406,6 +406,9 @@ </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"> Modified: ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml?view=diff&rev=532060&r1=532059&r2=532060 ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/CommonScreens.xml Tue Apr 24 13:00:32 2007 @@ -100,6 +100,8 @@ text="${uiLabelMap.AccountingPaymentsSent}"/> <link target="/accounting/control/findPayments?lookupFlag=Y&hideFields=Y&partyIdFrom=${partyId}&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> Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?view=diff&rev=532060&r1=532059&r2=532060 ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Tue Apr 24 13:00:32 2007 @@ -706,5 +706,65 @@ </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> + |
Free forum by Nabble | Edit this page |