ilscipio/scipio-erp

View on GitHub
applications/accounting/widget/finance/FinAccountForms.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">

    <form name="FindFinAccounts" type="single" target="FindFinAccount"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-entity entity-name="FinAccount" default-field-type="find"/>
        <field name="finAccountId" title="${uiLabelMap.CommonId}"><text-find ignore-case="true"/></field>
        <field name="finAccountTypeId" title="${uiLabelMap.CommonType}" position="2">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="FinAccountType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="finAccountCode"><text-find ignore-case="true"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
        <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
        <field name="displayAdvancedSearch"><hidden value="true"></hidden></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    <form name="ListFinAccounts" type="list" separate-columns="true" default-entity-name="FinAccount" list-name="listIt" paginate-target="FindFinAccount" paginate="true"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <service service-name="performFind" result-map="result" result-map-list="listIt">
                <field-map field-name="inputFields" from-field="parameters"/>
                <field-map field-name="entityName" value="FinAccount"/>
                <field-map field-name="orderBy" value="finAccountId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="finAccountId" title="${uiLabelMap.CommonName}" widget-style="${styles.link_nav_info_idname}">
            <hyperlink description="${finAccountName} ${finAccountCode}" target="EditFinAccount">
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
        <field name="finAccountTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="FinAccountType"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display type="date"/></field>
        <field name="currencyUomId"><display/></field>
        <field name="actualBalance" widget-area-style="amount" title-area-style="align-right"><display type="currency" currency="${currencyUomId}"/></field>
        <field name="organizationPartyId" title="${uiLabelMap.CommonOrganisation}" widget-style="${styles.link_nav_info_id}">
            <hyperlink target="/partymgr/control/viewprofile" description="${organizationPartyId}" target-type="inter-app">
                <parameter param-name="partyId" from-field="organizationPartyId"/>
            </hyperlink>
        </field>
        <field name="ownerPartyId" title="${uiLabelMap.CommonOwner}" widget-style="${styles.link_nav_info_id}">
            <hyperlink target="/partymgr/control/viewprofile" description="${ownerPartyId}" target-type="inter-app">
                <parameter param-name="partyId" from-field="ownerPartyId"/>
            </hyperlink>
        </field>
        <field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteFinAccount" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
    </form>

    <form name="EditFinAccount" type="single" target="updateFinAccount" default-map-name="finAccount"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false">
                <field-map field-name="statusId" from-field="finAccount.statusId"/>
            </entity-one>
        </actions>
        <alt-target use-when="finAccount==null" target="createFinAccount"/>

        <field name="finAccountId" use-when="finAccountId!=null" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
        <field name="finAccountId" use-when="finAccount==null&amp;&amp;finAccountId==null"><ignored/></field>
        <field name="finAccountId" use-when="finAccount==null&amp;&amp;finAccountId!=null" tooltip="${uiLabelMap.CommonCannotBeFound}: [${finAccountId}]"><display also-hidden="false"/></field>
        
        <field name="finAccountTypeId" title="${uiLabelMap.CommonType}" position="2">
            <drop-down no-current-selected-key="DEPOSIT_ACCOUNT">
                <entity-options description="${description}" entity-name="FinAccountType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="finAccountCode"><text size="20"/></field>
        <field name="finAccountPin" position="2"><text size="10"/></field>
        <field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
            <drop-down no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
                <entity-options key-field-name="uomId" description="${uomId} - ${description}" entity-name="Uom">
                    <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="statusId" use-when="finAccount==null" title="${uiLabelMap.CommonStatus}" position="2">
            <drop-down allow-empty="false">
                <entity-options entity-name="StatusItem" description="${description}">
                    <entity-constraint name="statusTypeId" value="FINACCT_STATUS"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="statusId" use-when="finAccount!=null" title="${uiLabelMap.CommonStatus}" position="2">
            <drop-down allow-empty="false" current-description="${currentStatus.description}">
                <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
                    <entity-constraint name="statusId" env-name="finAccount.statusId"/>
                    <entity-order-by field-name="sequenceId"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="organizationPartyId" title="${uiLabelMap.CommonOrganisation}"><lookup target-form-name="LookupPartyName"/></field>
        <field name="ownerPartyId" title="${uiLabelMap.CommonOwner}" position="2"><lookup target-form-name="LookupPartyName"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
        <field name="isRefundable">
            <drop-down no-current-selected-key="Y">
                <option key="Y" description="${uiLabelMap.CommonY}"/>
                <option key="N" description="${uiLabelMap.CommonN}"/>
            </drop-down>
        </field>
        <field name="postToGlAccountId" position="2"><lookup target-form-name="LookupGlAccount"/></field>
        <field name="replenishPaymentId"><text/></field>
        <field name="replenishLevel" position="2"><text/></field>
        <field name="submitAction" use-when="finAccountId==null" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
        <field name="submitAction" use-when="finAccountId!=null" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field name="actualBalance" use-when="finAccount!=null"><display type="currency" currency="${finAccount.currencyUomId}"/></field>
        <field name="availableBalance" position="2" use-when="finAccount!=null"><display type="currency" currency="${finAccount.currencyUomId}"/></field>
    </form>

    <form name="ListFinAccountRoles" type="list" list-name="finAccountRoles" target="updateFinAccountRole" separate-columns="true"
        odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="EditFinAccountRoles"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="FinAccountRole">
                <condition-expr field-name="finAccountId" from-field="finAccountId"/>
                <order-by field-name="finAccountId"/>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-one entity-name="PartyNameView" value-field="party"/>
        </row-actions>
        <field name="finAccountId"><hidden/></field>
        <field name="partyId" title="${uiLabelMap.CommonParty}" widget-style="${styles.link_nav_info_idname_long}">
           <hyperlink also-hidden="false" description="${partyId} - ${party.groupName} ${party.firstName} ${party.lastName}" target="EditAgreementItemParty">
                <parameter param-name="partyId"/>
                <parameter param-name="agreementId"/>
                <parameter param-name="agreementItemSeqId"/>
            </hyperlink>
        </field>
        <field name="roleTypeId" title="${uiLabelMap.CommonRole}"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display type="date"/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}"><date-time type="date"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteFinAccountRole" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="finAccountId"/>
                <parameter param-name="partyId"/>
                <parameter param-name="roleTypeId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddFinAccountRole" type="single" target="createFinAccountRole"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createFinAccountRole"/>
        <field name="finAccountId"><hidden/></field>
        <field name="partyId" title="${uiLabelMap.CommonParty}"> <lookup target-form-name="LookupPartyName"/></field>
        <field name="roleTypeId" title="${uiLabelMap.CommonRole}" position="2">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="RoleType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>

    <form name="AddFinAccountTrans" type="single" target="createFinAccountTrans"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <set field="statusId" value="FINACT_TRNS_CREATED"/>
        </actions>
        <auto-fields-service service-name="createFinAccountTrans" default-position="1"/>
        <field name="finAccountId"><hidden/></field>
        <field name="finAccountTransId"><hidden/></field>
        <field name="finAccountTransTypeId" title="${uiLabelMap.CommonType}" position="1">
            <drop-down no-current-selected-key="ADJUSTMENT">
                <entity-options description="${description}" entity-name="FinAccountTransType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="partyId" title="${uiLabelMap.CommonParty}" position="1"><lookup target-form-name="LookupPartyName"/></field>        
        <field name="transactionDate" position="1"> <date-time/> </field>
        <field name="entryDate" position="1"><date-time/></field>
        <field name="paymentId" title="${uiLabelMap.CommonPayment}" position="1"><lookup target-form-name="LookupPayment"/></field>        
        <field name="orderId" title="${uiLabelMap.CommonOrder}" position="1"><lookup target-form-name="LookupOrderHeader"/></field>        
        <field name="orderItemSeqId" position="1"><text/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}" position="1">
            <drop-down>
                <entity-options entity-name="StatusItem" description="${description}">
                    <entity-constraint name="statusTypeId" value="FINACT_TRNS_STATUS"/>
                </entity-options>
            </drop-down>
        </field>        
        <field name="glAccountId" title="${uiLabelMap.AccountingGlAccount}" position="1">
            <drop-down>
                <entity-options entity-name="GlAccountOrganizationAndClass" description="${accountCode} - ${accountName} [${glAccountId}]" key-field-name="glAccountId">
                    <entity-constraint name="organizationPartyId" operator="equals" env-name="defaultOrganizationPartyId"/>
                    <entity-order-by field-name="glAccountId"/>
                </entity-options>
            </drop-down>
        </field>        
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>

    <form name="ListFinAccountAuths" type="list" list-name="finAccountauths" target="expireFinAccountAuth" separate-columns="true"
        odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="EditFinAccountAuths"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="FinAccountAuth">
                <condition-expr field-name="finAccountId" from-field="finAccountId"/>
                <order-by field-name="finAccountAuthId"/>
            </entity-condition>
        </actions>
        <auto-fields-entity entity-name="FinAccountAuth" default-field-type="display"/>
        <field name="finAccountAuthId"><display/></field>
        <field name="finAccountId"><hidden/></field>
        <field name="expireAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_terminate}">
            <hyperlink target="expireFinAccountAuth" description="${uiLabelMap.CommonExpire}" also-hidden="false">
                <parameter param-name="finAccountId"/>
                <parameter param-name="finAccountAuthId"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddFinAccountAuth" type="single" target="createFinAccountAuth"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createFinAccountAuth"/>
        <field name="finAccountId"><hidden/></field>
        <field name="finAccountAuthId"><hidden/></field>
        <field name="amount" title="${uiLabelMap.CommonAmount}"><text/></field>
        <field name="authorizationDate"><date-time/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time/></field>
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    
    <form name="PaymentsDepositWithdraw" type="single" target="FindPaymentsForDepositOrWithdraw" extends="FindBatchPayments" extends-resource="component://accounting/widget/payments/PaymentForms.xml">
        <field name="finAccountId"><hidden/></field>
        <field name="noConditionFind"><hidden/></field>
        <field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    
    <form name="FindDepositSlips" type="single" target="FindDepositSlips" extends="FindPaymentGroup" extends-resource="component://accounting/widget/payments/PaymentGroupForms.xml">
        <field name="finAccountId"><hidden/></field>
        <field name="paymentGroupTypeId"><hidden value="BATCH_PAYMENT"/></field>
    </form>
    
    <form name="ListDepositSlips" type="list" target="FindDepositSlips" extends="ListPaymentGroup" extends-resource="component://accounting/widget/payments/PaymentGroupForms.xml" list-name="paymentGroupList"
            odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="FindDepositSlips"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <field name="paymentGroupId" widget-style="${styles.link_nav_info_id}">
            <hyperlink description="${paymentGroupId}" target="EditDepositSlipAndMembers">
                <parameter param-name="paymentGroupId"/>
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
        <field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}" use-when="${paymentGroupTypeId == 'BATCH_PAYMENT'} @and ${paymentGroupMemberAndTransList[0].finAccountTransStatusId != 'FINACT_TRNS_APPROVED'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
            <hyperlink target="deleteDepositSlip" description="${uiLabelMap.CommonCancel}" also-hidden="false">
                <parameter param-name="paymentGroupId"/>
                <parameter param-name="finAccountId"/>
                <parameter param-name="glReconciliationId"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditDepositSlip" type="single" target="updateDepositSlip" extends="EditPaymentGroup" extends-resource="component://accounting/widget/payments/PaymentGroupForms.xml">
        <field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="PaymentGroupType"/></field>
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
    </form>
    <form name="AddDepositSlipMember" type="single" target="addDepositSlipMember" extends="AddPaymentGroupMember" extends-resource="component://accounting/widget/payments/PaymentGroupForms.xml">
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
    </form>
    <form name="ListDepositSlipMember" type="list" target="updateDepositSlipMember" extends="ListPaymentGroupMember" extends-resource="component://accounting/widget/payments/PaymentGroupForms.xml"
            odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="EditDepositSlipAndMembers"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-and entity-name="PaymentGroupMember" list="paymentGroupMembers">
                <field-map field-name="paymentGroupId"/>
            </entity-and>
        </actions>
        <field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="expireDepositSlipMember" description="${uiLabelMap.CommonCancel}" also-hidden="false">
                <parameter param-name="paymentGroupId"/>
                <parameter param-name="paymentId"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
    </form>
    <form name="QuickFindFinAccounts" type="single" target="FindFinAccount"
            header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="finAccountId" title="${uiLabelMap.CommonId}"><text-find ignore-case="true"/></field>
        <field name="finAccountTypeId" title="${uiLabelMap.CommonType}" position="2">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="FinAccountType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="finAccountName" title="${uiLabelMap.CommonName}"><text-find ignore-case="true"/></field>
        <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    
    <form name="FindFinAccountTransactions" type="single" target="FindFinAccountTrans">
        <actions>
            <entity-and entity-name="GlReconciliation" list="glReconciliations">
                <field-map field-name="glAccountId" from-field="finAccount.postToGlAccountId"/>
                <order-by field-name="reconciledDate DESC"/>
            </entity-and>
        </actions>
        <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
        <field name="finAccountTransId"><text-find></text-find></field>
        <field name="finAccountTransTypeId" title="${uiLabelMap.CommonType}" position="2">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="FinAccountTransType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <drop-down allow-empty="true">
                <entity-options entity-name="StatusItem" description="${description}">
                    <entity-constraint name="statusTypeId" value="FINACT_TRNS_STATUS"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="glReconciliationId" position="2">
            <drop-down allow-empty="true">
                <option key="_NA_" description="${uiLabelMap.CommonNotAssigned}"/>
                <list-options list-name="glReconciliations" key-name="glReconciliationId" 
                    description="${glReconciliationName}[[${glReconciliationId}] [${reconciledDate}] [${reconciledBalance}]]"/>
            </drop-down>
        </field>
        <field name="fromTransactionDate" position="1"><date-time type="date"/></field>
        <field name="thruTransactionDate" position="2"><date-time type="date"/></field>
        <field name="fromEntryDate" position="1"><date-time type="date"/></field>
        <field name="thruEntryDate" position="2"><date-time type="date"/></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    
    <form name="FindBankReconciliationFinAcctTrans" target="BankReconciliation" 
            extends="FindFinAccountTransactions">
        <field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
        <field name="glReconciliationId" position="2">
            <drop-down>
                <list-options list-name="glReconciliations" key-name="glReconciliationId" 
                    description="${glReconciliationName}[[${glReconciliationId}] [${reconciledDate}] [${reconciledBalance}]]"/>
            </drop-down>
        </field>
    </form>
    
    <form name="EditDepositPayment" extends="EditPayment" 
            extends-resource="component://accounting/widget/payments/PaymentForms.xml" target="createDepositPayment">
        <actions>
            <entity-one entity-name="FinAccount" value-field="finAccount"/>
            <set field="finAccountTypeId" from-field="finAccount.finAccountTypeId"/>
        </actions>
        <field name="paymentTypeId" title="${uiLabelMap.CommonType}">
            <drop-down allow-empty="false">
                <entity-options entity-name="PaymentType" description="${description}">
                    <entity-constraint name="parentTypeId" operator="equals" env-name="parentTypeId"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="paymentMethodId" title="${uiLabelMap.CommonMethod}">
            <drop-down allow-empty="true">
                <entity-options entity-name="PaymentMethod" description="${paymentMethodTypeId} (${paymentMethodId})"/>
            </drop-down>
        </field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
        <field name="partyIdTo" position="2"><lookup target-form-name="LookupInternalOrganization"/></field>
        <field name="amount" title="${uiLabelMap.CommonAmount}" position="2"><text size="6"/></field>
        <field name="comments" position="2"><text size="35"/></field>
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
        <field name="finAccountTypeId"><hidden value="${finAccountTypeId}"/></field>
        <field name="finAccountTransTypeId" position="1"><hidden/></field>
        <field name="currencyUomId" position="2"><hidden value="${defaultOrganizationPartyCurrencyUomId}"/></field>
        <field name="isDepositWithDrawPayment" title="${uiLabelMap.AccountingDepositPaymentInFinAccount}" ><check/></field>
        <field name="paymentGroupTypeId"><hidden value="BATCH_PAYMENT"/></field>
        <field name="updateAction" widget-style="${styles.link_run_sys} ${styles.action_update}"><ignored/></field>
        <field name="createAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    <form name="EditWithdrawalPayment" type="single" extends="EditDepositPayment" target="createWithdrawalPayment">
        <field name="partyIdFrom" position="1"><lookup target-form-name="LookupInternalOrganization"/></field>
        <field name="isDepositWithDrawPayment" title="${uiLabelMap.AccountingWithdrawalPaymentInFinAccount}" position="1"><check/></field>
        <field name="paymentGroupTypeId"><ignored/></field>
    </form>
    
    <form name="EditFinAccountReconciliation" type="single" target="createGlReconciliation" default-map-name="glReconciliation" 
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <entity-one entity-name="GlReconciliation" value-field="glReconciliation"/>
        </actions>
        <alt-target use-when="glReconciliationId != null" target="updateFinAccountGlReconciliation"/>
        <field name="finAccountId"><hidden value="${finAccountId}"/></field>
        <field name="glReconciliationId" use-when="glReconciliationId == null"><ignored/></field>
        <field name="glReconciliationId" use-when="glReconciliationId != null"><display/></field>
        <field name="statusId" use-when="glReconciliationId == null" position="2"><hidden value="GLREC_CREATED"/></field>
        <field name="statusId" use-when="glReconciliationId != null" title="${uiLabelMap.CommonStatus}" position="2">
            <drop-down>
                <entity-options entity-name="StatusItem" description="${description}">
                    <entity-constraint name="statusTypeId" value="GLREC_STATUS"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="glReconciliationName"><text/></field>
        <field name="description"><textarea/></field>
        <field name="glAccountId"><hidden value="${finAccount.postToGlAccountId}"/></field>
        <field name="organizationPartyId" title="${uiLabelMap.CommonOrganisation}"><lookup target-form-name="LookupPartyName"/></field>
        <field name="createdDate"><date-time type="date"/></field>
        <field name="lastModifiedDate" position="2"><date-time type="date"/></field>
        <field name="openingBalance" use-when="&quot;GLREC_RECONCILED&quot;.equals(&quot;${glReconciliation.statusId}&quot;)"><display/></field>
        <field name="reconciledBalance" use-when="${reconciledBalance == null}" position="2"><hidden/></field>
        <field name="reconciledBalance" use-when="&quot;GLREC_RECONCILED&quot;.equals(&quot;${glReconciliation.statusId}&quot;)" position="2"><display type="currency" currency="${defaultOrganizationPartyCurrencyUomId}"/></field>
        <field name="reconciledDate" title="${uiLabelMap.AccountingReconciliationDate}" position="2"><date-time/></field>
        <field name="createAction" use-when="glReconciliationId == null" widget-style="${styles.link_run_sys} ${styles.action_add}">
            <submit button-type="button"/>
        </field>
        <field name="updateAction" use-when="glReconciliationId != null" widget-style="${styles.link_run_sys} ${styles.action_update}">
            <submit button-type="button"/>
        </field>
    </form>
    
    <form name="ListFinAccountReconciliations" type="list" list-name="glReconciliations" list-entry-name="glReconciliation" separate-columns="true"
            odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="FindFinAccountReconciliations"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <row-actions>
            <entity-one entity-name="PartyNameView" value-field="partyName">
                <field-map field-name="partyId" from-field="glReconciliation.organizationPartyId"/>
            </entity-one>
            <set field="currencyUomId" from-field="defaultOrganizationPartyCurrencyUomId"/>
        </row-actions>
        <auto-fields-service service-name="updateGlReconciliation" default-field-type="display" map-name="glReconciliation"/>
        <field name="glReconciliationId" title="${uiLabelMap.CommonId}" widget-style="${styles.link_nav_info_id} ${styles.action_view}">
            <hyperlink target="ViewGlReconciliationWithTransaction" description="${glReconciliation.glReconciliationId}">
                <parameter param-name="glReconciliationId" from-field="glReconciliation.glReconciliationId"/>
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
        <field name="glReconciliationName" title="${uiLabelMap.CommonName}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
        <field name="organizationPartyId" title="${uiLabelMap.CommonParty}" widget-style="${styles.link_nav_info_idname_long} ${styles.action_view}">
            <hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="${partyName.firstName} ${partyName.lastName}${partyName.groupName} [${partyName.partyId}]">
                <parameter param-name="partyId" from-field="partyName.partyId"/>
            </hyperlink>
        </field>
        <field name="cancelAction" title="${uiLabelMap.AccountingCancelBankReconciliation}" use-when="${glReconciliation.statusId == 'GLREC_CREATED'}" widget-style="${styles.link_run_sys} ${styles.action_terminate}">
            <hyperlink also-hidden="false" description="${uiLabelMap.CommonCancel}" target="cancelReconciliation">
                <parameter param-name="glReconciliationId" from-field="glReconciliation.glReconciliationId"/>
                <parameter param-name="finAccountId"/>
            </hyperlink>
        </field>
        <field name="reconciledBalance" widget-area-style="amount" title-area-style="align-right"><display type="currency" currency="${currencyUomId}"></display></field>
        <field name="openingBalance" widget-area-style="amount" title-area-style="align-right"><display type="currency" currency="${currencyUomId}"></display></field>
    </form>
    
    <form name="FindBankReconciliation" type="single" target="FindFinAccountReconciliations">
        <field name="finAccountId"><hidden value="${parameters.finAccountId}"/></field>
        <field name="glReconciliationId"><lookup target-form-name="LookupGlReconciliation"/></field>
        <field name="glReconciliationName" position="2"><text/></field>
        <field name="organizationPartyId" title="${uiLabelMap.PartyParty}"><lookup target-form-name="LookupPartyName"/></field>
        
        <field name="statusId" title="${uiLabelMap.CommonStatus}" position="2">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="StatusItem">
                    <entity-constraint name="statusTypeId" operator="equals" value="GLREC_STATUS"/>
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="glAccountId" position="2"><lookup target-form-name="LookupGlAccount"/></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    
    <form name="FinAccountReconciliationBalance" default-map-name="currentGlReconciliation"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="glReconciliationName"><display/></field>
        <field name="statusId" position="2">
            <display-entity entity-name="StatusItem" description="${description}"/>
        </field>
        <field name="openingBalance" position="2"><display type="currency" currency="${currencyUomId}"/></field>
        <field name="reconciledDate"><display/></field>
        <field name="reconciledBalance" position="2"><display type="currency" currency="${currencyUomId}"/></field>
        <field name="currentClosingBalance" position="2"><display description="${currentClosingBalance}" type="currency" currency="${currencyUomId}"/></field>
    </form>
</forms>