applications/accounting/widget/settings/GlSetupScreens.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.CommonSettingsDecoratorLocation pattern that existed here has been supplanted
by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->
<screen name="ListCompanies">
<section>
<actions>
<set field="titleProperty" value="AccountingAvailableInternalOrganizations"/>
<set field="activeSubMenuItem" value="settings"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingAvailableInternalOrganizations}"/>
<entity-condition entity-name="PartyAcctgPreference" list="parties"/>
<service service-name="acctgPrefPermissionCheck" result-map="permResult">
<field-map field-name="mainAction" value="UPDATE"/>
</service>
<set field="hasPrefPermission" from-field="permResult.hasPermission"/>
<service service-name="basicGeneralLedgerPermissionCheck" result-map="permResult">
<field-map field-name="mainAction" value="VIEW"/>
</service>
<set field="hasBasicPermission" from-field="permResult.hasPermission"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet navigation-menu-name="newAccountOrganization">
<include-menu location="component://accounting/widget/AccountingMenus.xml" name="OrganizationSubTabBar"/>
<include-form name="ListCompanies" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="AddCompany">
<section>
<actions>
<set field="titleProperty" value="AccountingNewCompany"/>
</actions>
<widgets>
<decorator-screen name="CommonAccountingAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="AddCompany" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListGlAccountOrganization">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingChartOfAcctsMenu"/>
<set field="activeSubMenuItem" value="ListGlAccountOrganization"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingChartOfAcctsMenu}"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="GlAccountOrganizationPanel" collapsible="true">
<include-form name="AssignGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="${styles.link_run_sys} ${styles.action_export}" target="ListGlAccountOrgCsv.csv">
<parameter param-name="organizationPartyId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="${styles.link_run_sys} ${styles.action_export}" target="ListGlAccountOrgPdf.pdf" target-window="_BLANK">
<parameter param-name="organizationPartyId"/>
</link>
<include-form name="ListGlAccountOrganization" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PartyAcctgPreference">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingPreference"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingPreference}"/>
<set field="activeSubMenuItem" value="settings"/>
<set field="activeSubMenuItem2" value="PartyAcctgPreference"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<set field="partyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-field="partyAcctgPreference"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="PartyAcctgPreference" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="SetupGlJournals">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingGlJournals"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingGlJournals}"/>
<set field="activeSubMenuItem" value="SetupGlJournals"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="GlJournal" value-field="glJournal"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="GlJournalPanel" collapsible="true">
<include-form name="EditGlJournal" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListGlJournals" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountTypeDefaults">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingGlAccountTypeDefaults"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingGlAccountTypeDefaults}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="GlAccountTypeDefaults"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="GlAccountTypeDefaultPanel" title="${uiLabelMap.CommonAdd}" collapsible="true">
<include-form name="EditGlAccountTypeDefault" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListGlAccountTypeDefaults" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountSalInvoice">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingInvoiceSales"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingInvoiceSales}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="GlAccountSalInvoice"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="SalInvoiceItemTypeGlAsigmtPanel" title="${uiLabelMap.AccountingAssignSalesInvoiceToRevenue}" collapsible="true">
<include-form name="AddSalInvoiceItemTypeGlAssignment" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListSalInvoiceItemTypeGlAssignments" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountPurInvoice">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingInvoicePurchase"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="GlAccountPurInvoice"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="PurInvoiceItemTypeGlAsigmtPanel" title="${uiLabelMap.AccountingAssignPurchaseInvoiceToRevenue}" collapsible="true">
<include-form name="AddPurInvoiceItemTypeGlAssignment" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListPurInvoiceItemTypeGlAssignments" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountTypePaymentType">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingPaymentType}/${uiLabelMap.FormFieldTitle_glAccountTypeId}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="GlAccountTypePaymentType"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="PaymentTypeGlAsigmtPanel" title="${uiLabelMap.AccountingPaymentTypeAssignAccountType}" collapsible="true">
<include-form name="AddPaymentTypeGlAssignment" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListPaymentTypeGlAssignments" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountNrPaymentMethod">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingPaymentMethodId}/${uiLabelMap.AccountingGlAccountId}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="GlAccountNrPaymentMethod"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="PaymentMethodTypeGlAsigmtPanel" title="${uiLabelMap.AccountingPaymentMethodAssignAccountType}" collapsible="true">
<include-form name="AddPaymentMethodTypeGlAssignment" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListPaymentMethodTypeGlAssignments" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditProductGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingProductGlAccount"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingProductGlAccount}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="ProductGlAccounts"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="ProductGlAccount" list="productGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="glAccountTypeId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="ProductGlAccountPanel" title="${uiLabelMap.ProductAddGlAccount}" collapsible="true">
<include-form name="AddProductGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListProductGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFinAccountTypeGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingFinAccountTypeGlAccount"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingFinAccountTypeGlAccount}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="FinAccountTypeGlAccounts"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="FinAccountTypeGlAccount" list="finAccountTypeGlAccounts">
<condition-expr field-name="organizationPartyId" operator="equals" from-field="organizationPartyId"/>
<order-by field-name="finAccountTypeId"/>
</entity-condition>
<entity-condition entity-name="FinAccountType" list="finAccountTypes" use-cache="true">
<order-by field-name="finAccountTypeId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="FinAccountTypeGlAccountPanel" title="${uiLabelMap.AccountingAddFinAccountTypeGlAccount}" collapsible="true">
<include-form name="AddFinAccountTypeGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListFinAccountTypeGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditProductCategoryGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingProductCategoryGlAccount"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingProductCategoryGlAccount}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="ProductCategoryGlAccounts"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="ProductCategoryGlAccount" list="productCategoryGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="glAccountTypeId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="ProductCategoryGlAccountPanel" title="${uiLabelMap.ProductAddCategoryGlAccount}" collapsible="true">
<include-form name="AddProductCategoryGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListProductCategoryGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditVarianceReasonGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingVarianceReasonGlAccounts"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="VarianceReasonGlAccounts"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingVarianceReasonGlAccounts}"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="VarianceReasonGlAccount" list="varianceReasonGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="glAccountId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="VarianceReasonGlAccountPanel" title="${uiLabelMap.AccountingVarianceReasonGlAccounts}" collapsible="true">
<include-form name="AddVarianceReasonGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListVarianceReasonGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditCreditCardTypeGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingCreditCardTypeGlAccount"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="CreditCardTypeGlAccount"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingCreditCardTypeGlAccount}"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="CreditCardTypeGlAccount" list="creditCardTypeGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="CreditCardTypeGlAccountPanel" title="${uiLabelMap.AccountingCreditCardTypeGlAccount}" collapsible="true">
<include-form name="AddCreditCardTypeGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListCreditCardTypeGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditOrganizationTaxAuthorityGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleEditTaxAuthorityGlAccounts"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="TaxAuthorityGlAccounts"/>
<set field="labelTitleProperty" value="${uiLabelMap.PageTitleEditTaxAuthorityGlAccounts}"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="TaxAuthorityGlAccount" list="taxAuthorityGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="taxAuthGeoId"/>
<order-by field-name="taxAuthPartyId"/>
</entity-condition>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/chartofaccounts/TaxAuthorityGlAccounts.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="OrgTaxAuthorityGlAccountPanel" title="${uiLabelMap.AccountingAddTaxAuthorityGlAccount}" collapsible="true">
<include-form name="AddTaxAuthorityGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListTaxAuthorityGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPartyGlAccount">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleEditPartyGlAccounts"/>
<set field="labelTitleProperty" value="${uiLabelMap.PageTitleEditPartyGlAccounts}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="PartyGlAccounts"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="PartyGlAccount" list="partyGlAccounts">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="partyId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="PartyGlAccountPanel" title="${uiLabelMap.AccountingAddPartyGlAccount}" collapsible="true">
<include-form name="AddPartyGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListPartyGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FixedAssetTypeGlAccounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="FixedAssetTypeGlAccounts"/>
<set field="labelTitleProperty" value="${uiLabelMap.FixedAssetTypeGlAccounts}"/>
<set field="activeSubMenuItem" value="GlAccountAssignment"/>
<set field="activeSubMenuItem2" value="FixedAssetTypeGlAccounts"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="FixedAssetTypeGlAccountPanel" title="${uiLabelMap.CommonAdd}" collapsible="true">
<include-form name="AddFixedAssetTypeGlAccount" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListFixedAssetTypeGlAccounts" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListGlAccountOrgPdf">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="GlAccountOrganizationAndClass" list="glAccountOrgAndClassList">
<condition-expr field-name="organizationPartyId" from-field="organizationPartyId"/>
<order-by field-name="glAccountId"/>
</entity-condition>
</actions>
<widgets>
<platform-specific>
<xsl-fo>
<html-template location="component://accounting/webapp/accounting/reports/ChartOfAccount.fo.ftl"/>
</xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="ListGlAccountOrgCsv">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<include-form name="ListGlAccountOrgCsv" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</widgets>
</section>
</screen>
<screen name="FindGlAccountCategory">
<section>
<actions>
<set field="titleProperty" value="FormFieldTitle_findGlAccountCategory"/>
<set field="activeSubMenuItem" value="FindGlAccountCategory"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditGlAccountCategory" text="${uiLabelMap.FormFieldTitle_newGlAccountCategory}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindGlAccountCategory" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListGlAccountCategory" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm">${uiLabelMap.AccountingViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditGlAccountCategory">
<section>
<actions>
<set field="activeSubMenuItem" value="FindGlAccountCategory"/>
<set field="activeSubMenuItem2" value="EditGlAccountCategory"/>
<set field="glAccountCategoryId" from-field="parameters.glAccountCategoryId"/>
<set field="glAccountCategoryTypeId" from-field="parameters.glAccountCategoryTypeId"/>
<entity-one entity-name="GlAccountCategory" value-field="glAccountCategory" auto-field-map="true"/>
<set field="titleProperty" value="${groovy: context.glAccountCategory ? 'FormFieldTitle_editGlAccountCategory' : 'FormFieldTitle_newGlAccountCategory'}"/><!-- FormFieldTitle_glAccountCategory -->
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field="glAccountCategory"/></not>
</condition>
<widgets>
<!--<label style="heading">${uiLabelMap.FormFieldTitle_editGlAccountCategory}</label>-->
<include-menu name="GlAccountCategoryTabBar" location="component://accounting/widget/AccountingMenus.xml"/>
</widgets>
<fail-widgets>
<!--<label style="heading">${uiLabelMap.FormFieldTitle_newGlAccountCategory}</label>-->
</fail-widgets>
</section>
<include-form name="EditGlAccountCategory" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditGlAccountCategoryMember">
<section>
<actions>
<set field="titleProperty" value="FormFieldTitle_editGlAccountCategoryMember"/>
<set field="activeSubMenuItem" value="FindGlAccountCategory"/>
<set field="activeSubMenuItem2" value="EditGlAccountCategoryMember"/>
<set field="glAccountCategoryId" from-field="parameters.glAccountCategoryId"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<!--<label style="heading">${uiLabelMap.FormFieldTitle_editGlAccountCategoryMember}</label>-->
<include-menu name="GlAccountCategoryTabBar" location="component://accounting/widget/AccountingMenus.xml"/>
<include-form name="ListGlAccountCategoryMember" location="component://accounting/widget/settings/GlSetupForms.xml"/>
<include-form name="AddGlAccountCategoryMember" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- GlobalGlAccountScreens --> <!-- migrated to GlSetupScreens -->
<screen name="ViewRateAmounts">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingRateAmounts"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingRateAmounts}"/>
<set field="activeSubMenuItem" value="ViewRateAmounts"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingUpdateRateAmount}" navigation-form-name="ListRateAmounts">
<include-form name="updateRateAmount" location="component://accounting/widget/ledger/GlobalGlAccountsForms.xml"/>
</screenlet>
<include-form name="ListRateAmounts" location="component://accounting/widget/ledger/GlobalGlAccountsForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Screen to view and manage foreign exchange conversions -->
<screen name="ViewFXConversions">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingFX"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingFX}"/>
<set field="activeSubMenuItem" value="ViewFXConversions"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<!-- TODO: If UomConversionDated is ever used for another type of conversion besides currencies or if some currencies are
stored in UomConversion, we need to change the logic here -->
<entity-condition entity-name="UomConversionDated" list="conversions">
<order-by field-name="uomId"/>
<order-by field-name="uomIdTo"/>
<order-by field-name="fromDate"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="FxConversionPanel" title="${uiLabelMap.AccountingUpdateFX}" collapsible="true">
<include-form name="updateFXConversion" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</screenlet>
<include-form name="ListConversions" location="component://accounting/widget/settings/GlSetupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>