Files
ofbiz-framework/applications/accounting/widget/GlScreens.xml
T
2008-06-13 02:59:15 +00:00

651 lines
39 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="PartyAccountsSummary">
<section>
<actions>
<set field="titleProperty" value="AccountingPartyAccountsSummary"/>
<set field="tabButtonItem" value="PartyAccountsSummary"/>
<set field="labelTitleProperty" value="AccountingPartyAccountsSummary"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<!-- entity-condition entity-name="GlAccountOrganization" list-name="entityList" use-cache="true" >
<condition-expr field-name="glAccountId" operator="greater" value="0" />
</entity-condition -->
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingPartyAccountsSummary}"/>
</container>
</container>
<container style="screenlet-body">
<container>
<link target="CreateAcctgTransAndEntries?organizationPartyId=${organizationPartyId}&amp;debitGlAccountClassId=CURRENT_ASSET&amp;creditGlAccountClassId=REVENUE&amp;acctgTransTypeId=SALES" text="${uiLabelMap.AccountingCreateSalesAcctgTrans}" style="buttontext"/>
<link target="TrialBalance?organizationPartyId=${organizationPartyId}" text="${uiLabelMap.AccountingTrialBalance}" style="buttontext"/>
</container>
<container>
<link target="CreateAcctgTransAndEntries?organizationPartyId=${organizationPartyId}&amp;debitGlAccountClassId=CASH_EQUIVALENT&amp;creditGlAccountClassId=CURRENT_LIABILITY&amp;acctgTransTypeId=PAYMENT_ACCTG_TRANS" text="${uiLabelMap.AccountingCreatePaymentAcctgTrans}" style="buttontext"/>
<link target="IncomeStatement?organizationPartyId=${organizationPartyId}" text="${uiLabelMap.AccountingIncomeStatement}" style="buttontext"/>
</container>
<container>
<link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans?organizationPartyId=${organizationPartyId}"/>
<link target="BalanceSheet?organizationPartyId=${organizationPartyId}" text="${uiLabelMap.AccountingBalanceSheet}" style="buttontext"/>
</container>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindAcctgTrans">
<section>
<actions>
<set field="titleProperty" value="AccountingAcctgTrans"/>
<set field="tabButtonItem" value="FindAcctgTrans"/>
<set field="labelTitleProperty" value="AccountingAcctgTrans"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctgTranss}"/>
</container>
</container>
<container style="screenlet-body">
<container>
<link text="${uiLabelMap.AccountingCreateAnAccountingTransaction}" style="buttontext" target="newAcctgTrans?organizationPartyId=${organizationPartyId}"/>
<link text="${uiLabelMap.AccountingCreateAcctgTransAndEntries}" style="buttontext" target="CreateAcctgTransAndEntries?organizationPartyId=${organizationPartyId}"/>
<link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans?organizationPartyId=${organizationPartyId}"/>
</container>
<include-form name="FindAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
<section>
<condition>
<if-compare field-name="parameters.performSearch" operator="equals" value="Y"/>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctgTranss}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindAcctgTransEntries">
<section>
<actions>
<set field="titleProperty" value="AccountingAcctgTransEntries"/>
<set field="tabButtonItem" value="FindAcctgTransEntries"/>
<set field="labelTitleProperty" value="AccountingAcctgTransEntries"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctgTransEntries}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="FindAcctgTransEntries" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
<section>
<condition>
<and>
<if-compare field-name="parameters.performSearch" operator="equals" value="Y"/>
<if-compare field-name="parameters.reportType" operator="equals" value="byAccount"/>
</and>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctgTransEntries} ${uiLabelMap.AccountingByAccount}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListFindAcctgTransEntriesByAccount" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</widgets>
</section>
<section>
<condition>
<and>
<if-compare field-name="parameters.performSearch" operator="equals" value="Y"/>
<if-compare field-name="parameters.reportType" operator="equals" value="byDate"/>
</and>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctgTransEntries} ${uiLabelMap.AccountingByDate}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListFindAcctgTransEntriesByDate" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CreateAcctgTransAndEntries">
<section>
<actions>
<set field="titleProperty" value="AccountingCreateAcctgTransAndEntries"/>
<set field="tabButtonItem" value="FindAcctgTrans"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="labelTitleProperty" value="AccountingCreateAcctgTransAndEntries"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingCreateAcctgTransAndEntries}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="CreateAcctgTransAndEntries" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAcctgTrans">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleEditTransaction"/>
<set field="tabButtonItem" value="FindAcctgTrans"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="acctgTransId" from-field="parameters.acctgTransId"/>
<entity-one entity-name="AcctgTrans" value-name="acctgTrans"/>
<entity-one entity-name="AcctgTransEntry" value-name="acctgTransEntry">
<field-map field-name="acctgTransId"/>
<field-map field-name="acctgTransEntrySeqId" env-name="parameters.editAcctgTransEntrySeqId"/>
</entity-one>
<entity-and entity-name="AcctgTransEntry" list-name="acctgTransEntries">
<field-map field-name="acctgTransId"/>
<order-by field-name="acctgTransEntrySeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field-name="acctgTransId"/></not>
</condition>
<widgets>
<container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<section>
<condition>
<if-compare field-name="acctgTrans.isPosted" operator="equals" value="Y"/>
</condition>
<widgets>
<label text="${uiLabelMap.PageTitleViewTransaction}"/>
</widgets>
<fail-widgets>
<label text="${uiLabelMap.PageTitleEditTransaction}"/>
</fail-widgets>
</section>
</container>
</container>
<container style="screenlet-body">
<link text="${uiLabelMap.AccountingDuplicateAccountingTransaction}" style="buttontext" target="copyAcctgTransAndEntries?revert=N&amp;fromAcctgTransId=${acctgTransId}&amp;organizationPartyId=${organizationPartyId}"/>
<link text="${uiLabelMap.AccountingRevertAccountingTransaction}" style="buttontext" target="copyAcctgTransAndEntries?revert=Y&amp;fromAcctgTransId=${acctgTransId}&amp;organizationPartyId=${organizationPartyId}"/>
<section>
<condition>
<if-compare field-name="acctgTrans.isPosted" operator="equals" value="Y"/>
</condition>
<widgets>
<include-form name="ViewAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="EditAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</fail-widgets>
</section>
</container>
</container>
</container>
<container>
<container style="screenlet">
<section>
<condition>
<if-compare field-name="acctgTrans.isPosted" operator="equals" value="Y"/>
</condition>
<widgets>
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleViewTransactionEntries}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ViewAcctgTransEntries" location="component://accounting/widget/GlForms.xml"/>
</container>
</widgets>
<fail-widgets>
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditTransactionEntries}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListAcctgTransEntries" location="component://accounting/widget/GlForms.xml"/>
</container>
</fail-widgets>
</section>
</container>
</container>
</widgets>
</section>
<section>
<condition>
<if-compare field-name="acctgTrans.isPosted" operator="not-equals" value="Y"/>
</condition>
<widgets>
<container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleAddTransactionEntry}"/>
</container>
</container>
<container style="screenlet-body">
<container>
<link text="${uiLabelMap.AccountingCompleteAcctgTransFields}" style="buttontext" target="completeAcctgTransEntries?acctgTransId=${acctgTransId}&amp;organizationPartyId=${organizationPartyId}"/>
<link text="${uiLabelMap.AccountingVerifyTransaction}" style="buttontext" target="postAcctgTrans?acctgTransId=${acctgTransId}&amp;organizationPartyId=${organizationPartyId}&amp;verifyOnly=Y"/>
<link text="${uiLabelMap.AccountingPostTransaction}" style="buttontext" target="postAcctgTrans?acctgTransId=${acctgTransId}&amp;organizationPartyId=${organizationPartyId}"/>
</container>
<container>
<include-form name="EditAcctgTransEntry" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListUnpostedAcctgTrans">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleUnpostedTransactions"/>
<set field="tabButtonItem" value="FindAcctgTrans"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="labelTitleProperty" value="${uiLabelMap.PageTitleUnpostedTransactions}"/>
<set field="partyId" from-field="parameters.organizationPartyId"/>
<entity-condition entity-name="AcctgTrans" list-name="transactions">
<condition-expr field-name="isPosted" operator="not-equals" value="Y"/>
<order-by field-name="transactionDate"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleUnpostedTransactions}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListUnpostedAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListChecksToPrint">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingPrintChecks"/>
<set field="tabButtonItem" value="ChecksTabButton"/>
<set field="tabButtonItem2" value="PrintChecksTabButton"/>
<set field="labelTitleProperty" value="${uiLabelMap.AccountingPrintChecks}"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" />
<!-- find payments of paymentMethodType PERSONAL_CHECK or COMPANY_CHECK with statusId NOT_PAID -->
<entity-condition entity-name="Payment" list-name="payments">
<condition-list combine="and">
<condition-expr field-name="partyIdFrom" operator="equals" env-name="organizationPartyId"/>
<condition-expr field-name="statusId" operator="equals" value="PMNT_NOT_PAID"/>
<condition-list combine="or">
<condition-expr field-name="paymentMethodTypeId" operator="equals" value="PERSONAL_CHECK"/>
<condition-expr field-name="paymentMethodTypeId" operator="equals" value="COMPANY_CHECK"/>
</condition-list>
</condition-list>
<order-by field-name="effectiveDate"/>
</entity-condition>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/admin/FilterOutReceipts.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonAdminChecksDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="checks-body">
<section>
<condition><if-has-permission permission="ACCOUNTING" action="_PRINT_CHECKS"/></condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingPrintChecks}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListChecksToPrint" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</container>
</container>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AccountingPrintChecksPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListChecksToSend">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingSendChecks"/>
<set field="tabButtonItem" value="ChecksTabButton"/>
<set field="tabButtonItem2" value="SendChecksTabButton"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" />
<!-- find payments of paymentMethodType PERSONAL_CHECK or COMPANY_CHECK with statusId NOT_PAID -->
<entity-condition entity-name="Payment" list-name="payments">
<condition-list combine="and">
<condition-expr field-name="partyIdFrom" operator="equals" env-name="organizationPartyId"/>
<condition-expr field-name="statusId" operator="equals" value="PMNT_NOT_PAID"/>
<condition-list combine="or">
<condition-expr field-name="paymentMethodTypeId" operator="equals" value="PERSONAL_CHECK"/>
<condition-expr field-name="paymentMethodTypeId" operator="equals" value="COMPANY_CHECK"/>
</condition-list>
</condition-list>
<order-by field-name="effectiveDate"/>
</entity-condition>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/admin/FilterOutReceipts.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonAdminChecksDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="checks-body">
<section>
<condition><if-has-permission permission="PAY_INFO" action="_UPDATE"/></condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingSendChecks}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ListChecksToSend" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</container>
</container>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AccountingUpdatePaymentPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="NewAcctgTrans">
<section>
<actions>
<set field="titleProperty" value="AccountingCreateAnAccountingTransaction"/>
<set field="tabButtonItem" value="FindAcctgTrans"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="labelTitleProperty" value="AccountingCreateAnAccountingTransaction"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingCreateAnAccountingTransaction}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="CreateAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindGlAccountReconciliation">
<section>
<actions>
<set field="titleProperty" value="AccountingAcctRecon"/>
<set field="tabButtonItem" value="AccountReconciliation"/>
<set field="labelTitleProperty" value="AccountingAcctRecon"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="glAccountId" from-field="parameters.glAccountId"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctRecon}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="FindGlAccountReconciliation" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
<section>
<condition>
<if-compare field-name="parameters.performSearch" operator="equals" value="Y"/>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctRecon}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListGlAccountReconciliation" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditGlReconciliation">
<section>
<actions>
<set field="titleProperty" value="AccountingEditAcctRecon"/>
<set field="tabButtonItem" from-field="parameters.tabButtonItem" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="glReconciliationId" from-field="parameters.glReconciliationId" global="true"/>
<entity-one entity-name="GlReconciliation" value-name="glReconciliation"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingEditAcctRecon}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditGlReconciliation" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingEditAcctRecon}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListGlReconciliationEntries" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindGlAccountReconciliations">
<section>
<actions>
<set field="titleProperty" value="AccountingAcctRecons"/>
<set field="tabButtonItem" value="AccountReconciliations"/>
<set field="labelTitleProperty" value="AccountingAcctRecons"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
<set field="glAccountId" from-field="parameters.glAccountId"/>
</actions>
<widgets>
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctRecons}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="FindGlAccountReconciliations" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
<section>
<condition>
<if-compare field-name="parameters.performSearch" operator="equals" value="Y"/>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAcctRecons}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListGlAccountReconciliations" location="component://accounting/widget/GlForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>