applications/accounting/widget/payments/PaymentGroupScreens.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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindPaymentGroup">
<section>
<actions>
<set field="titleProperty" value="AccountingFindPaymentGroup"/>
<set field="activeSubMenuItem" value="PaymentGroup"/>
<entity-condition entity-name="PaymentGroup" list="paymentGroupList">
<condition-expr field-name="paymentGroupId" from-field="parameters.paymentGroupId" ignore-if-empty="true"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonAccountingAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditPaymentGroup" text="${uiLabelMap.AccountingCreateNewPaymentGroup}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindPaymentGroup" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListPaymentGroup" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPaymentGroup">
<section>
<actions>
<set field="titleProperty" value="AccountingEditPaymentGroup"/>
<set field="activeSubMenuItem" value="EditPaymentGroup"/>
<entity-one entity-name="PaymentGroup" value-field="paymentGroup"/>
<set field="display" type="Boolean" value="false"/>
</actions>
<widgets>
<decorator-screen name="CommonPaymentGroupDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field="paymentGroup"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingPaymentGroup}">
<include-form name="EditPaymentGroup" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
</widgets>
<fail-widgets>
<screenlet title="${uiLabelMap.AccountingNewPaymentGroup}">
<include-form name="AddPaymentGroup" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPaymentGroupMember">
<section>
<actions>
<set field="titleProperty" value="AccountingEditPaymentGroupMember"/>
<set field="activeSubMenuItem" value="EditPaymentGroupMember"/>
<set field="paymentGroupId" from-field="parameters.paymentGroupId"/>
<entity-and entity-name="PaymentGroupMember" list="paymentGroupMembers">
<field-map field-name="paymentGroupId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonPaymentGroupDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet name="addPaymentGroupMember" title="${uiLabelMap.AccountingAddPaymentGroupMember}" collapsible="true">
<include-form name="AddPaymentGroupMember" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
<screenlet name="listPaymentGroupMember" title="${uiLabelMap.AccountingPaymentGroupMembers}" collapsible="true">
<include-form name="ListPaymentGroupMember" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PaymentGroupOverview">
<section>
<actions>
<set field="titleProperty" value="AccountingPaymentGroupOverview"/>
<set field="activeSubMenuItem" value="PaymentGroupOverview"/>
<set field="paymentGroupId" from-field="parameters.paymentGroupId"/>
<set field="display" type="Boolean" value="true"/>
<entity-one entity-name="PaymentGroup" value-field="paymentGroup"/>
<entity-and entity-name="PaymentGroupMember" list="paymentGroupMembers">
<field-map field-name="paymentGroupId"/>
</entity-and>
<service service-name="getPaymentGroupReconciliationId" result-map="resultMap">
<field-map field-name="paymentGroupId"/>
</service>
<set field="glReconciliationId" from-field="resultMap.glReconciliationId"/>
</actions>
<widgets>
<decorator-screen name="CommonPaymentGroupDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet name="editPaymentGroup" title="${uiLabelMap.AccountingPaymentGroupHeader} [${paymentGroupId}]">
<include-form name="EditPaymentGroup" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
<screenlet name="paymentGroupMembers" title="${uiLabelMap.AccountingPaymentGroupMembers}">
<include-form name="PaymentGroupMembers" location="component://accounting/widget/payments/PaymentGroupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="DepositSlipPdf">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<entity-one entity-name="PaymentGroup" value-field="paymentGroup"/>
<service service-name="getPayments" result-map="getPaymentsMap"/>
<set field="payments" from-field="getPaymentsMap.payments"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<platform-specific>
<xsl-fo><html-template location="component://accounting/webapp/accounting/reports/DepositSlip.fo.ftl"/></xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>