applications/accounting/widget/payments/PaymentGroupForms.xml
<?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">
<!-- Payment Group -->
<form name="FindPaymentGroup" type="single" target="FindPaymentGroup"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<auto-fields-entity entity-name="PaymentGroup" default-field-type="find" default-position="2"/>
<field name="paymentGroupId" title="${uiLabelMap.CommonId}" position="1"><text-find/></field>
<field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}" position="2">
<drop-down allow-empty="true">
<entity-options entity-name="PaymentGroupType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</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="ListPaymentGroup" type="list" separate-columns="true" default-entity-name="PaymentGroup" list-name="paymentGroupList"
paginate-target="FindPaymentGroup" paginate="true" odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-and entity-name="PaymentGroupMember" list="paymentGroupMembers" filter-by-date="true">
<field-map field-name="paymentGroupId"/>
</entity-and>
<entity-and entity-name="PmtGrpMembrPaymentAndFinAcctTrans" list="paymentGroupMemberAndTransList" filter-by-date="true">
<field-map field-name="paymentGroupId"/>
</entity-and>
</row-actions>
<field name="paymentGroupId" title="${uiLabelMap.CommonId} - " widget-style="${styles.link_nav_info_id}">
<hyperlink description="${paymentGroupId}" target="PaymentGroupOverview">
<parameter param-name="paymentGroupId"/>
</hyperlink>
</field>
<field name="paymentGroupName" title="${uiLabelMap.CommonName}"><display description="${paymentGroupName}"/></field>
<field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="PaymentGroupType"/></field>
<field name="depositSlipAction" title="${uiLabelMap.AccountingDepositSlip}" widget-style="${styles.link_run_sys} ${styles.action_export}" use-when="${paymentGroupTypeId == 'BATCH_PAYMENT'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
<hyperlink target="DepositSlip.pdf" target-window="_BLANK" description="${uiLabelMap.AccountingInvoicePDF}" also-hidden="false">
<parameter param-name="paymentGroupId"/>
</hyperlink>
</field>
<field name="printCheckAction" title="${uiLabelMap.CommonPdf}" widget-style="${styles.link_run_sys} ${styles.action_export}" use-when="${paymentGroupTypeId == 'CHECK_RUN'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
<hyperlink target="printChecks.pdf" target-window="_BLANK" description="${uiLabelMap.AccountingInvoicePDF}" also-hidden="false">
<parameter param-name="paymentGroupId"/>
</hyperlink>
</field>
<field name="deleteAction" title="${uiLabelMap.CommonCancel}" 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="cancelPaymentGroup" description="${uiLabelMap.CommonCancel}" also-hidden="false">
<parameter param-name="paymentGroupId"/>
</hyperlink>
</field>
<field name="deleteAction" title="${uiLabelMap.CommonCancel}" widget-style="${styles.link_run_sys} ${styles.action_remove}" use-when="${paymentGroupTypeId == 'CHECK_RUN'} @and ${paymentGroupMemberAndTransList[0].finAccountTransStatusId != 'FINACT_TRNS_APPROVED'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
<hyperlink target="cancelCheckRunPayments" description="${uiLabelMap.CommonCancel}" also-hidden="false">
<parameter param-name="paymentGroupId"/>
</hyperlink>
</field>
</form>
<form name="AddPaymentGroup" type="single" target="createPaymentGroup" title="" default-map-name="paymentGroup">
<field name="paymentGroupName" title="${uiLabelMap.AccountingPaymentGroupName}" position="1"><text/></field>
<field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}" position="2">
<drop-down allow-empty="false">
<entity-options entity-name="PaymentGroupType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="EditPaymentGroup" type="single" target="updatePaymentGroup" title="" default-map-name="paymentGroup">
<actions>
<entity-and entity-name="PmtGrpMembrPaymentAndFinAcctTrans" list="pmtGrpMembrPaymentAndFinAcctTransList">
<field-map field-name="paymentGroupId" from-field="paymentGroup.paymentGroupId"/>
</entity-and>
<entity-one entity-name="FinAccount" value-field="finAccount">
<field-map field-name="finAccountId" from-field="pmtGrpMembrPaymentAndFinAcctTransList[0].finAccountId"/>
</entity-one>
</actions>
<alt-target use-when="paymentGroup==null" target="createPaymentGroup"/>
<auto-fields-service service-name="updatePaymentGroup" default-position="1"/>
<field use-when="paymentGroup!=null" name="paymentGroupId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
<field use-when="paymentGroup==null @and paymentGroupId!=null" name="paymentGroupId"><display description="${uiLabelMap.CommonCannotBeFound}: [${paymentGroupId}]" also-hidden="false"/></field>
<field name="paymentGroupId" use-when="display==true"><display/></field>
<field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}" position="2">
<display-entity entity-name="PaymentGroupType" description="${description}"/>
</field>
<field name="paymentGroupTypeId" use-when="paymentGroup==null" title="${uiLabelMap.CommonType}" position="1">
<drop-down allow-empty="false">
<entity-options entity-name="PaymentGroupType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field use-when="finAccount!=null" name="finAccountName" title="${uiLabelMap.FormFieldTitle_finAccountName}" position="2">
<display description="${finAccount.finAccountName}" type="text"/>
</field>
<field use-when="finAccount!=null" name="ownerPartyId" title="${uiLabelMap.FormFieldTitle_ownerPartyId}" position="2">
<display description="${finAccount.ownerPartyId}" type="text"/>
</field>
<field name="paymentGroupName" use-when="display==true"><display/></field>
<field name="submitAction" use-when="paymentGroup!=null @and display==false" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
</form>
<!-- Payment Group Member -->
<form name="ListPaymentGroupMember" type="list" list-name="paymentGroupMembers" target="updatePaymentGroupMember"
odd-row-style="alternate-row" header-row-style="header-row" separate-columns="true" use-row-submit="false" paginate-target="EditPaymentGroupMember"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="Payment" value-field="payment"/>
<set field="paymentTypeId" from-field="payment.paymentTypeId"/>
<set field="partyIdFrom" from-field="payment.partyIdFrom"/>
<set field="partyIdTo" from-field="payment.partyIdTo"/>
<set field="paymentMethodTypeId" from-field="payment.paymentMethodTypeId"/>
<entity-one entity-name="CreditCard" value-field="creditCard">
<field-map field-name="paymentMethodId" from-field="payment.paymentMethodId"/>
</entity-one>
<set field="cardType" from-field="creditCard.cardType"/>
<set field="amount" from-field="payment.amount" type="BigDecimal"/>
<set field="paymentRefNum" from-field="payment.paymentRefNum"/>
</row-actions>
<field name="paymentGroupId"><hidden/></field>
<field name="paymentId" title="${uiLabelMap.CommonPayment}" widget-style="${styles.link_nav_info_id}">
<hyperlink target="paymentOverview" description="${paymentId}">
<parameter param-name="paymentId"/>
</hyperlink>
</field>
<field name="paymentRefNum" title="${uiLabelMap.AccountingReferenceNumber}"><display/></field>
<field name="partyIdFrom" title="${uiLabelMap.CommonFrom}">
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdFrom}]" link-style="${styles.link_nav_info_id}">
<parameter param-name="partyId" from-field="partyIdFrom"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="partyIdTo" title="${uiLabelMap.CommonTo}">
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdTo}]" link-style="${styles.link_nav_info_id}">
<parameter param-name="partyId" from-field="partyIdTo"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="paymentTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="PaymentType" description="${description}"/></field>
<field name="paymentMethodTypeId" title="${uiLabelMap.CommonMethod}" use-when="cardType!=null">
<display-entity entity-name="PaymentMethodType" description="${description} (${cardType})"/>
</field>
<field name="paymentMethodTypeId" title="${uiLabelMap.CommonMethod}" use-when="cardType==null">
<display-entity entity-name="PaymentMethodType" description="${description}"/>
</field>
<field name="amount" title="${uiLabelMap.CommonAmount}" widget-area-style="amount" title-area-style="align-right">
<display currency="${payment.currencyUomId}" type="currency"/>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><date-time/></field>
<field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="expirePaymentGroupMember" description="${uiLabelMap.CommonCancel}" also-hidden="false">
<parameter param-name="paymentGroupId"/>
<parameter param-name="paymentId"/>
<parameter param-name="fromDate"/>
</hyperlink>
</field>
<field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
</form>
<form name="AddPaymentGroupMember" type="single" target="createPaymentGroupMember">
<field name="paymentGroupId"><hidden/></field>
<field name="paymentId" title="${uiLabelMap.CommonPayment}"><lookup target-form-name="LookupPayment"/></field>
<field name="sequenceNum" position="2"><text/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date" default-value="${nowTimestamp}"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date" default-value="${nowTimestamp}"/></field>
<field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="PaymentGroupMembers" type="list" list-name="paymentGroupMembers"
odd-row-style="alternate-row" paginate-target="PaymentGroupOverview"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="Payment" value-field="payment"/>
<set field="statusId" from-field="payment.statusId"/>
<set field="amount" from-field="payment.amount"/>
<set field="paymentTypeId" from-field="payment.paymentTypeId"/>
<set field="partyIdFrom" from-field="payment.partyIdFrom"/>
<set field="partyIdTo" from-field="payment.partyIdTo"/>
</row-actions>
<field name="paymentId" title="${uiLabelMap.CommonPayment}" widget-style="${styles.link_nav_info_id}">
<hyperlink target="paymentOverview" description="${paymentId}">
<parameter param-name="paymentId"/>
</hyperlink>
</field>
<field name="partyIdFrom" title="${uiLabelMap.AccountingFromParty}">
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdFrom}]" link-style="${styles.link_nav_info_id}">
<parameter param-name="partyId" from-field="partyIdFrom"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="partyIdTo" title="${uiLabelMap.AccountingToParty}">
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdTo}]" link-style="${styles.link_nav_info_id}">
<parameter param-name="partyId" from-field="partyIdTo"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="paymentTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="PaymentType" description="${description}"/></field>
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
<field name="amount" title="${uiLabelMap.CommonAmount}" widget-area-style="amount" title-area-style="align-right"><display also-hidden="false" type="currency" currency="${payment.currencyUomId}"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><display/></field>
</form>
</forms>