Files
ofbiz-framework/applications/accounting/widget/ReportFinancialSummaryScreens.xml
T
Jacopo Cappellato e55adb996e Misc fixes for the gl auto posting services.
Very first and incomplete version of the comparative balance sheet.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@609356 13f79535-47bb-0310-9956-ffa450edef68
2008-01-06 17:59:05 +00:00

392 lines
23 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="FinancialSummaryReportOptions">
<section>
<actions>
<set field="titleProperty" value="PageTitleFinancialSummaryReportOptions"/>
<set field="headerItem" value="FinancialSummryReports"/>
<set field="month" from-field="parameters.month" default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;MM&quot;)}"/>
<set field="year" from-field="parameters.year" default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;yyyy&quot;)}"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container><label style="head1" text="${uiLabelMap.PageTitleFinancialSummaryReportOptions}"/></container>
<container><label style="head2" text="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}"/></container>
<include-form name="SalesInvoiceByProductCategorySummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="head2" text="${uiLabelMap.PageTitleSalesInvoiceByProductGlAccountSummary}"/></container>
<include-form name="SalesInvoiceByProductGlAccountSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="head2" text="${uiLabelMap.PageTitlePaymentByMethodSummary}"/></container>
<include-form name="PaymentByMethodSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="head2" text="${uiLabelMap.PageTitleInventoryIssueSummary}"/></container>
<include-form name="InventoryIssueSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="head2" text="${uiLabelMap.PageTitleFinancialAccountSummary}"/></container>
<include-form name="FinancialAccountSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FinancialSummaryDataPrep">
<section>
<actions>
<set field="headerItem" value="FinancialSummryReports"/>
<set field="month" from-field="parameters.month" type="Integer" default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;MM&quot;)}"/>
<set field="year" from-field="parameters.year" type="Integer" default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;yyyy&quot;)}"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="currencyUomId" from-field="parameters.currencyUomId"/>
<entity-one entity-name="PartyNameView" value-name="organizationPartyName" auto-field-map="false" use-cache="true">
<field-map field-name="partyId" env-name="organizationPartyId"/>
</entity-one>
<entity-one entity-name="Uom" value-name="currencyUom" auto-field-map="false" use-cache="true">
<field-map field-name="uomId" env-name="currencyUomId"/>
</entity-one>
</actions>
<widgets></widgets>
</section>
</screen>
<screen name="SalesInvoiceByProductCategorySummary">
<section>
<widgets>
<include-screen name="FinancialSummaryDataPrep" share-scope="true"/>
<section>
<actions>
<set field="titleProperty" value="PageTitleSalesInvoiceByProductCategorySummary"/>
<set field="rootProductCategoryId" from-field="parameters.rootProductCategoryId"/>
<entity-one entity-name="ProductCategory" value-name="rootProductCategory" auto-field-map="false" use-cache="true">
<field-map field-name="productCategoryId" env-name="rootProductCategoryId"/>
</entity-one>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/SalesInvoiceByProductCategorySummary.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}"/>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/SalesInvoiceByProductCategorySummary.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="SalesInvoiceByProductGlAccountSummary">
<section>
<widgets>
<include-screen name="FinancialSummaryDataPrep" share-scope="true"/>
<section>
<actions>
<set field="titleProperty" value="PageTitleSalesInvoiceByProductGlAccountSummary"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/SalesInvoiceByProductGlAccountSummary.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.PageTitleSalesInvoiceByProductGlAccountSummary}"/>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/SalesInvoiceByProductGlAccountSummary.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="PaymentByMethodSummary">
<section>
<widgets>
<include-screen name="FinancialSummaryDataPrep" share-scope="true"/>
<section>
<actions>
<set field="titleProperty" value="PageTitlePaymentByMethodSummary"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/PaymentByMethodSummary.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.PageTitlePaymentByMethodSummary}"/>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/PaymentByMethodSummary.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="InventoryIssueSummary">
<section>
<widgets>
<include-screen name="FinancialSummaryDataPrep" share-scope="true"/>
<section>
<actions>
<set field="titleProperty" value="PageTitleInventoryIssueSummary"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/InventoryIssueSummary.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.PageTitleInventoryIssueSummary}"/>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/InventoryIssueSummary.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="FinancialAccountSummary">
<section>
<widgets>
<include-screen name="FinancialSummaryDataPrep" share-scope="true"/>
<section>
<actions>
<set field="titleProperty" value="PageTitleFinancialAccountSummary"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/FinancialAccountSummary.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.PageTitleFinancialAccountSummary}"/>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/FinancialAccountSummary.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="TrialBalance">
<section>
<actions>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TrialBalance"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-name="partyAcctgPreference" auto-field-map="false">
<field-map field-name="partyId" env-name="organizationPartyId"/>
</entity-one>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<entity-condition entity-name="GlAccountOrganization" list-name="trialBalances" filter-by-date="true">
<condition-list>
<condition-expr field-name="organizationPartyId" operator="equals" env-name="organizationPartyId"/>
<condition-expr field-name="postedBalance" operator="not-equals" env-name="null"/>
</condition-list>
<order-by field-name="glAccountId"/>
</entity-condition>
<set field="totalsRow.isLastRow" value="true" type="Boolean"/>
<set field="totalsRow.postedBalance" value="0" type="Double"/>
<set field="trialBalances[]" from-field="totalsRow" type="Object"/>
<set field="parameters.debitTotal" value="0" type="Double"/>
<set field="parameters.creditTotal" value="0" type="Double"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="head2" text="${uiLabelMap.AccountingTrialBalance}"/>
</container>
<include-form name="TrialBalanceList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomeStatement">
<section>
<actions>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="IncomeStatement"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-name="partyAcctgPreference" auto-field-map="false">
<field-map field-name="partyId" env-name="organizationPartyId"/>
</entity-one>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="glAccountTotalsList" from-field="parameters.glAccountTotalsList"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="head2" text="${uiLabelMap.AccountingIncomeStatement}"/>
</container>
<include-form name="IncomeStatementParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<section>
<condition>
<not><if-empty field-name="parameters.totalNetIncome"/></not>
</condition>
<widgets>
<include-form name="IncomeStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container>
<label style="head3" text="${uiLabelMap.AccountingNetIncome}: ${parameters.totalNetIncome}"/>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BalanceSheet">
<section>
<actions>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="BalanceSheet"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-name="partyAcctgPreference" auto-field-map="false">
<field-map field-name="partyId" env-name="organizationPartyId"/>
</entity-one>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="assetBalancesList" from-field="parameters.assetBalancesList"/>
<set field="liabilityBalancesList" from-field="parameters.liabilityBalancesList"/>
<set field="equityBalancesList" from-field="parameters.equityBalancesList"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="head2" text="${uiLabelMap.AccountingBalanceSheet}"/>
</container>
<include-form name="BalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<section>
<condition>
<or>
<not><if-empty field-name="assetBalancesList"/></not>
<not><if-empty field-name="liabilityBalancesList"/></not>
<not><if-empty field-name="equityBalancesList"/></not>
</or>
</condition>
<widgets>
<container>
<label style="head2" text="${uiLabelMap.AccountingAssets}"/>
</container>
<include-form name="BalanceSheetAssetList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container>
<label style="head2" text="${uiLabelMap.AccountingLiabilities}"/>
</container>
<include-form name="BalanceSheetLiabilityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container>
<label style="head2" text="${uiLabelMap.AccountingEquities}"/>
</container>
<include-form name="BalanceSheetEquityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeBalanceSheet">
<section>
<actions>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeBalanceSheet"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-name="partyAcctgPreference" auto-field-map="false">
<field-map field-name="partyId" env-name="organizationPartyId"/>
</entity-one>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="assetBalancesList" from-field="parameters.assetBalancesList"/>
<set field="liabilityBalancesList" from-field="parameters.liabilityBalancesList"/>
<set field="equityBalancesList" from-field="parameters.equityBalancesList"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="head2" text="${uiLabelMap.AccountingComparativeBalanceSheet}"/>
</container>
<include-form name="ComparativeBalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<section>
<condition>
<or>
<not><if-empty field-name="assetBalancesList"/></not>
<not><if-empty field-name="liabilityBalancesList"/></not>
<not><if-empty field-name="equityBalancesList"/></not>
</or>
</condition>
<widgets>
<container>
<label style="head2" text="${uiLabelMap.AccountingAssets}"/>
</container>
<include-form name="BalanceSheetAssetList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container>
<label style="head2" text="${uiLabelMap.AccountingLiabilities}"/>
</container>
<include-form name="BalanceSheetLiabilityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container>
<label style="head2" text="${uiLabelMap.AccountingEquities}"/>
</container>
<include-form name="BalanceSheetEquityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- TODO: this is just a placeholder: the report is not still implemented -->
<screen name="TransactionTotals">
<section>
<actions>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TransactionTotals"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="head2" text="${uiLabelMap.AccountingTransactionTotals}"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>