applications/accounting/widget/billing/BillingAccountScreens.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">
<!-- SCIPIO: NOTE: The old parameters.billingAccountDecoratorLocation pattern that existed here has been supplanted
by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->
<screen name="FindBillingAccount">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindBillingAccount"/>
<set field="activeSubMenuItem" value="billingaccount"/>
</actions>
<widgets>
<decorator-screen name="CommonAccountingAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-empty field="parameters.partyId"/>
</condition>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditBillingAccount" text="${uiLabelMap.CommonNew} ${uiLabelMap.CommonAccount}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindBillingAccounts" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListBillingAccounts" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<section>
<actions>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/payment/BillingAccounts.groovy"/>
<set field="roleTypeId" value="BILL_TO_CUSTOMER"/>
</actions>
<widgets>
<screenlet> <!-- title="${uiLabelMap.PageTitleFindBillingAccount}" -->
<link target="EditBillingAccount" text="${uiLabelMap.CommonNew} " style="${styles.link_nav} ${styles.action_add}">
<parameter param-name="partyId" from-field="parameters.partyId"/>
<parameter param-name="roleTypeId" value="BILL_TO_CUSTOMER"/>
</link>
<include-form name="ListBillingAccountsByParty" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</widgets>
</section>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditBillingAccount">
<section>
<actions>
<set field="activeSubMenuItem" value="EditBillingAccount"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
<set field="partyId" from-field="parameters.partyId"/>
<set field="roleTypeId" from-field="parameters.roleTypeId"/>
<set field="titleProperty" value="${groovy: context.billingAccount ? 'PageTitleEditBillingAccount' : 'AccountingNewBillingAccount'}"/><!-- SCIPIO -->
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="">
<include-form name="EditBillingAccount" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditBillingAccountRoles">
<section>
<actions>
<set field="activeSubMenuItem" value="EditBillingAccountRoles"/>
<set field="titleProperty" value="PageTitleEditBillingAccountRoles"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleAddBillingAccountRoles}">
<include-form name="AddBillingAccountRole" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleListBillingAccountRoles} - ${uiLabelMap.AccountingAccountId} ${billingAccount.billingAccountId}">
<include-form name="ListBillingAccountRoles" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditBillingAccountTerms">
<section>
<actions>
<set field="activeSubMenuItem" value="EditBillingAccountTerms"/>
<set field="titleProperty" value="PageTitleEditBillingAccountTerms"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<set field="billingAccountTermId" from-field="parameters.billingAccountTermId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleAddBillingAccountTerms}">
<include-form name="EditBillingAccountTerms" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleListBillingAccountTerms} - ${uiLabelMap.AccountingAccountId} ${billingAccount.billingAccountId}">
<include-form name="ListBillingAccountTerms" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BillingAccountInvoices">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditBillingAccountInvoices"/>
<set field="activeSubMenuItem" value="BillingAccountInvoices"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<set field="billingAccountTermId" from-field="parameters.billingAccountTermId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingFindInvoices}">
<include-form name="lookupInvoicesStatus" location="component://accounting/widget/invoice/InvoiceForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleListBillingAccountInvoices} - ${uiLabelMap.AccountingAccountId} ${billingAccount.billingAccountId}">
<include-form name="ListBillingAccountInvoices" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BillingAccountOrders">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditBillingAccountOrders"/>
<set field="activeSubMenuItem" value="BillingAccountOrders"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/order/BillingAccountOrders.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleListBillingAccountOrders} - ${uiLabelMap.AccountingAccountId} ${billingAccount.billingAccountId}">
<include-form name="ListBillingAccountOrders" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BillingAccountPayments">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditBillingAccountPayments"/>
<set field="activeSubMenuItem" value="BillingAccountPayments"/>
<set field="billingAccountId" from-field="parameters.billingAccountId"/>
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
<entity-condition entity-name="BillingAccountAndRole" list="billToCustomers" filter-by-date="true">
<condition-list>
<condition-expr field-name="billingAccountId" from-field="billingAccountId"/>
<condition-expr field-name="roleTypeId" value="BILL_TO_CUSTOMER"/>
</condition-list>
</entity-condition>
<set field="billToCustomer" from-field="billToCustomers[0]"/>
</actions>
<widgets>
<decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleAddBillingAccountPayments}">
<include-form name="CreateIncomingBillingAccountPayment" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleListBillingAccountPayments} - ${uiLabelMap.AccountingAccountId} ${billingAccount.billingAccountId}">
<include-form name="ListBillingAccountPayments" location="component://accounting/widget/billing/BillingAccountForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>