Files
ofbiz-framework/applications/accounting/widget/ReportFinancialSummaryScreens.xml
T

1331 lines
85 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="h1" text="${uiLabelMap.PageTitleFinancialSummaryReportOptions}"/></container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="SalesInvoiceByProductCategorySummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleSalesInvoiceByProductGlAccountSummary}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="SalesInvoiceByProductGlAccountSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitlePaymentByMethodSummary}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="PaymentByMethodSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleInventoryIssueSummary}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="InventoryIssueSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleFinancialAccountSummary}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="FinancialAccountSummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</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-field="organizationPartyName" auto-field-map="false" use-cache="true">
<field-map field-name="partyId" from-field="organizationPartyId"/>
</entity-one>
<entity-one entity-name="Uom" value-field="currencyUom" auto-field-map="false" use-cache="true">
<field-map field-name="uomId" from-field="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-field="rootProductCategory" auto-field-map="false" use-cache="true">
<field-map field-name="productCategoryId" from-field="rootProductCategoryId"/>
</entity-one>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/SalesInvoiceByProductCategorySummary.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}"/>
</container>
</container>
<container style="screenlet-body">
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/SalesInvoiceByProductCategorySummary.ftl"/></html></platform-specific>
</container>
</container>
</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">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleSalesInvoiceByProductGlAccountSummary}"/>
</container>
</container>
<container style="screenlet-body">
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/SalesInvoiceByProductGlAccountSummary.ftl"/></html></platform-specific>
</container>
</container>
</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">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitlePaymentByMethodSummary}"/>
</container>
</container>
<container style="screenlet-body">
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/PaymentByMethodSummary.ftl"/></html></platform-specific>
</container>
</container>
</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">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleInventoryIssueSummary}"/>
</container>
</container>
<container style="screenlet-body">
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/InventoryIssueSummary.ftl"/></html></platform-specific>
</container>
</container>
</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">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleFinancialAccountSummary}"/>
</container>
</container>
<container style="screenlet-body">
<platform-specific><html><html-template location="component://accounting/webapp/accounting/reports/FinancialAccountSummary.ftl"/></html></platform-specific>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="TrialBalance">
<section>
<actions>
<set field="titleProperty" value="AccountingTrialBalance"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TrialBalance"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<entity-condition entity-name="Party" list="parties">
<condition-expr field-name="partyId" operator="in" from-field="partyIds"/>
</entity-condition>
<set field="partyIds[]" from-field="organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TrialBalance.groovy"/>
<set field="totalsRow.isLastRow" value="true" type="Boolean"/>
<set field="totalsRow.postedBalance" value="0" type="BigDecimal"/>
<set field="trialBalances[]" from-field="totalsRow" type="Object"/>
<set field="parameters.debitTotal" value="0" type="BigDecimal"/>
<set field="parameters.creditTotal" value="0" type="BigDecimal"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="h3">
<label text="${uiLabelMap.AccountingConsolidatedDataFromDivisions}"/>
</container>
<screenlet title="${uiLabelMap.AccountingTrialBalance}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="buttontext" target="TrialBalanceSearchResultsCsv.csv">
<parameter param-name="organizationPartyId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="buttontext" target="TrialBalanceSearchResultsPdf.pdf">
<parameter param-name="organizationPartyId"/>
</link>
<include-form name="TrialBalanceList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomeStatement">
<section>
<actions>
<set field="titleProperty" value="AccountingIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="IncomeStatement"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingIncomeStatement}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="IncomeStatementParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<section>
<condition>
<not><if-empty field="totalNetIncome"/></not>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingIncomeStatement}"/>
</container>
</container>
<container style="screenlet-body">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="IncomeStatementListCsv.csv">
<parameter param-name="fromDate" from-field="parameters.fromDate"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="isIncomeStatement" value="true"/>
<parameter param-name="selectedMonth" from-field="parameters.selectedMonth"/>
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="IncomeStatementListPdf.pdf">
<parameter param-name="fromDate" from-field="parameters.fromDate"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="isIncomeStatement" value="true"/>
<parameter param-name="selectedMonth" from-field="parameters.selectedMonth"/>
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<container style="h3"><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="IncomeStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3"><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ExpenseStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container>
<label style="h3" text="${uiLabelMap.AccountingNetIncome}: ${totalNetIncome}"/>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BalanceSheet">
<section>
<actions>
<set field="titleProperty" value="AccountingBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="BalanceSheet"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<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 style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingBalanceSheet}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<section>
<condition>
<or>
<not><if-empty field="assetBalancesList"/></not>
<not><if-empty field="liabilityBalancesList"/></not>
<not><if-empty field="equityBalancesList"/></not>
</or>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="BalanceSheet.csv">
<parameter param-name="organizationPartyId"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="BalanceSheet.pdf">
<parameter param-name="organizationPartyId"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAssets}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetAssetList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingLiabilities}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetLiabilityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingEquities}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetEquityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeBalanceSheet">
<section>
<actions>
<set field="titleProperty" value="AccountingComparativeBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeBalanceSheet"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<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 style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingComparativeBalanceSheet}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="ComparativeBalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<section>
<condition>
<or>
<not><if-empty field="assetBalancesList"/></not>
<not><if-empty field="liabilityBalancesList"/></not>
<not><if-empty field="equityBalancesList"/></not>
</or>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAssets}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetAssetList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingLiabilities}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetLiabilityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingEquities}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="BalanceSheetEquityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</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="titleProperty" value="AccountingTransactionTotals"/>
<set field="labelTitleProperty" value="AccountingTransactionTotals"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TransactionTotals"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" from-field="organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true"/>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingTransactionTotals}"/>
</container>
<container style="screenlet-body">
<include-form name="FindTransactionTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</container>
<section>
<condition>
<or>
<not><if-empty field="postedTransTotalList"/></not>
<not><if-empty field="unpostedTransTotalList"/></not>
<not><if-empty field="postedAndUnpostedTransTotalList"/></not>
</or>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="TransactionTotalsCsv.csv">
<parameter param-name="fromDate"/>
<parameter param-name="thruDate"/>
<parameter param-name="organizationPartyId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="TransactionTotalsPdf.pdf">
<parameter param-name="fromDate"/>
<parameter param-name="thruDate"/>
<parameter param-name="organizationPartyId"/>
</link>
</widgets>
</section>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
</container>
<container style="screenlet-body">
<include-form name="PostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingUnPostedTransactionTotals}"/>
</container>
<container style="screenlet-body">
<include-form name="UnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}"/>
</container>
<container style="screenlet-body">
<include-form name="PostedAndUnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TransactionTotalsPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" from-field="organizationPartyId"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-form name="PostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingUnPostedTransactionTotals}"/>
<include-form name="UnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}"/>
<include-form name="PostedAndUnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TransactionTotalsCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" from-field="organizationPartyId"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-form name="PostedTransactionTotalListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-form name="UnpostedTransactionTotalListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-form name="PostedAndUnpostedTransactionTotalListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="IncomeStatementListPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="isPdf" value="true" type="Boolean"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container style="h3"><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="IncomeStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3"><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ExpenseStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="h3" text="${uiLabelMap.AccountingNetIncome}: ${totalNetIncome}"/></container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomeStatementListCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy"/>
</actions>
<widgets>
<container><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="IncomeStatementListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ExpenseStatementListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label text="${uiLabelMap.AccountingNetIncome}: ${totalNetIncome}"/></container>
</widgets>
</section>
</screen>
<screen name="BalanceSheetCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="prepareBalanceSheet" result-map="result" auto-field-map="true"/>
<set field="assetBalancesList" from-field="result.assetBalancesList"/>
<set field="liabilityBalancesList" from-field="result.liabilityBalancesList"/>
<set field="equityBalancesList" from-field="result.equityBalancesList"/>
</actions>
<widgets>
<container style="h3">
<label text="${uiLabelMap.AccountingAssets}"/>
<include-form name="BalanceSheetAssetListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingLiabilities}"/>
<include-form name="BalanceSheetLiabilityListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingEquities}"/>
<include-form name="BalanceSheetEquityListCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="BalanceSheetPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="prepareBalanceSheet" result-map="result" auto-field-map="true"/>
<set field="assetBalancesList" from-field="result.assetBalancesList"/>
<set field="liabilityBalancesList" from-field="result.liabilityBalancesList"/>
<set field="equityBalancesList" from-field="result.equityBalancesList"/>
<set field="isPdf" value="true" type="Boolean"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<widgets>
<container>
<label text="${uiLabelMap.AccountingAssets}"/>
<include-form name="BalanceSheetAssetList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingLiabilities}"/>
<include-form name="BalanceSheetLiabilityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingEquities}"/>
<include-form name="BalanceSheetEquityList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TrialBalanceSearchResultsCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true"/>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<entity-condition entity-name="Party" list="parties">
<condition-expr field-name="partyId" operator="in" from-field="partyIds"/>
</entity-condition>
<set field="partyIds[]" from-field="organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TrialBalance.groovy"/>
<set field="totalsRow.isLastRow" value="true" type="Boolean"/>
<set field="totalsRow.postedBalance" value="0" type="BigDecimal"/>
<set field="trialBalances[]" from-field="totalsRow" type="Object"/>
<set field="parameters.debitTotal" value="0" type="BigDecimal"/>
<set field="parameters.creditTotal" value="0" type="BigDecimal"/>
</actions>
<widgets>
<container>
<include-form name="TrialBalanceSearchResultsCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="TrialBalanceSearchResultsPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true"/>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<entity-condition entity-name="Party" list="parties">
<condition-expr field-name="partyId" operator="in" from-field="partyIds"/>
</entity-condition>
<set field="partyIds[]" from-field="organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TrialBalance.groovy"/>
<set field="totalsRow.isLastRow" value="true" type="Boolean"/>
<set field="totalsRow.postedBalance" value="0" type="BigDecimal"/>
<set field="trialBalances[]" from-field="totalsRow" type="Object"/>
<set field="parameters.debitTotal" value="0" type="BigDecimal"/>
<set field="parameters.creditTotal" value="0" type="BigDecimal"/>
<set field="isPdf" value="true" type="Boolean"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<include-form name="TrialBalanceList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountTrialBalance">
<section>
<actions>
<set field="titleProperty" value="AccountingGlAccountTrialBalance"/>
<set field="labelTitleProperty" value="AccountingGlAccountTrialBalance"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="GlAccountTrialBalance"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingGlAccountTrialBalance}">
<include-form name="GlAccountTrialBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<or>
<not><if-empty field="parameters.glAccountId"/></not>
<not><if-empty field="parameters.timePeriod"/></not>
<not><if-empty field="parameters.isPosted"/></not>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingGlAccountTrialBalance}">
<platform-specific>
<html>
<html-template location="component://accounting/webapp/accounting/reports/GlAccountTrialBalanceReport.ftl"/>
</html>
</platform-specific>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountTrialBalanceReportPdf">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy"/>
</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/GlAccountTrialBalanceReport.fo.ftl"/>
</xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="MonthlyTrialBalance">
<section>
<actions>
<set field="titleProperty" value="AccountingMonthlyTrialBalance"/>
<set field="labelTitleProperty" value="AccountingMonthlyTrialBalance"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="MonthlyTrialBalance"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" type="String"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" from-field="organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy"/>
<set field="financialYearFromDate" from-field="financialYearFromDate" type="Timestamp"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingMonthlyTrialBalance}">
<include-form name="MonthlyTrialBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<and>
<not><if-empty field="parameters.selectedMonth"/></not>
<not><if-empty field="parameters.posted"/></not>
</and>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="MonthlyTrialBalance.pdf">
<parameter param-name="posted" from-field="parameters.posted"/>
<parameter param-name="selectedMonth" from-field="parameters.selectedMonth"/>
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
</link>
<section>
<condition>
<or>
<if-compare field="parameters.posted" operator="equals" value="Y"/>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingPostedTransactionTotals}">
<include-form name="MonthlyPostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<or>
<if-compare field="parameters.posted" operator="equals" value="N"/>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingUnPostedTransactionTotals}">
<include-form name="MonthlyUnpostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}">
<include-form name="MonthlyPostedUnpostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</widgets>
</section>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="MonthlyTrialBalancePdf">
<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" type="String"/>
<set field="partyIds" value="${groovy:org.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, organizationPartyId, 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" from-field="organizationPartyId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy"/>
<set field="financialYearFromDate" from-field="financialYearFromDate" type="Timestamp"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<widgets>
<section>
<condition>
<or>
<if-compare field="parameters.posted" operator="equals" value="Y"/>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</or>
</condition>
<widgets>
<container>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-form name="MonthlyPostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
<section>
<condition>
<or>
<if-compare field="parameters.posted" operator="equals" value="N"/>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</or>
</condition>
<widgets>
<container>
<label text="${uiLabelMap.AccountingUnPostedTransactionTotals}"/>
<include-form name="MonthlyUnpostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.posted" operator="equals" value="All"/>
</condition>
<widgets>
<container>
<label text="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}"/>
<include-form name="MonthlyPostedUnpostedTransactionList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CostCenterReport">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="FormFieldTitle_costCenters"/>
<set field="labelTitleProperty" value="FormFieldTitle_costCenters"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="CostCenterReport"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" type="String"/>
<set field="glAcctgOrgAndCostCenterList" from-field="parameters.glAcctgOrgAndCostCenterList" type="List"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/CostCenters.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.FormFieldTitle_costCenters}">
<include-form name="CostCenter" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<or>
<not><if-empty field="parameters.timePeriod"/></not>
<not><if-empty field="parameters.fromDate"/></not>
<not><if-empty field="glAcctgOrgAndCostCenterMapList"/></not>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.FormFieldTitle_costCenters}">
<platform-specific>
<html>
<html-template location="component://accounting/webapp/accounting/reports/CostCentersReport.ftl"/>
</html>
</platform-specific>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CostCentersReportPdf">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true"/>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<entity-condition entity-name="GlAccountCategory" list="glAccountCategories">
<condition-expr field-name="glAccountCategoryTypeId" operator="equals" value="COST_CENTER"/>
</entity-condition>
<service service-name="getGlAcctgOrgWithPostedBalanceSplit" result-map="result" auto-field-map="true"/>
<set field="glAcctgOrgAndCostCenterList" from-field="result.glAcctgOrgAndCostCenterList" type="List"/>
</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/CostCentersReport.fo.ftl"/>
</xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryValuation">
<section>
<actions>
<set field="labelTitleProperty" value="AccountingInventoryValuation"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="InventoryValuation" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<section>
<condition>
<if-compare field="parameters.showSearchResults" operator="equals" value="Y"/>
</condition>
<actions>
<service service-name="getInventoryValuationList" result-map="inventoryValuation"/>
<set field="inventoryValuationList" from-field="inventoryValuation.inventoryValuationList" type="List"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="inventoryValuationList"/></not>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="InventoryValuation.pdf">
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
<parameter param-name="productId" from-field="parameters.productId"/>
<parameter param-name="productCategoryId" from-field="parameters.productCategoryId"/>
<parameter param-name="fromDate" from-field="parameters.fromDate"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="cogsMethodId" from-field="parameters.cogsMethodId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="InventoryValuation.csv">
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
<parameter param-name="productId" from-field="parameters.productId"/>
<parameter param-name="productCategoryId" from-field="parameters.productCategoryId"/>
<parameter param-name="fromDate" from-field="parameters.fromDate"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="cogsMethodId" from-field="parameters.cogsMethodId"/>
</link>
<screenlet title="${uiLabelMap.AccountingInventoryValuationList}">
<include-form name="InventoryValuationList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AccountingNoRecordFound}</label>
</fail-widgets>
</section>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryValuationPdf">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getInventoryValuationList" result-map="inventoryValuation"/>
<set field="inventoryValuationList" from-field="inventoryValuation.inventoryValuationList" type="List"/>
</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/InventoryValuationReport.fo.ftl"/>
</xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryValuationCsv">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getInventoryValuationList" result-map="inventoryValuation"/>
<set field="inventoryValuationList" from-field="inventoryValuation.inventoryValuationList" type="List"/>
</actions>
<widgets>
<container>
<include-form name="InventoryValuationCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatement">
<section>
<actions>
<set field="titleProperty" value="AccountingComparativeIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeIncomeStatement"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true"/>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/ComparativeIncomeStatement.groovy"/>
<set field="displaySearchResult" value="${period1TotalNetIncome != 0 || period2TotalNetIncome != 0}" type="Boolean"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingComparativeIncomeStatement}">
<include-form name="ComparativeIncomeStatementParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<if-compare field="displaySearchResult" operator="equals" value="true" type="Boolean"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingComparativeIncomeStatement}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="ComparativeIncomeStatements.csv">
<parameter param-name="period1FromDate" from-field="parameters.period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="parameters.period1ThruDate"/>
<parameter param-name="period2FromDate" from-field="parameters.period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="parameters.period2ThruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="ComparativeIncomeStatements.pdf">
<parameter param-name="period1FromDate" from-field="parameters.period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="parameters.period1ThruDate"/>
<parameter param-name="period2FromDate" from-field="parameters.period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="parameters.period2ThruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
<parameter param-name="glFiscalTypeId" from-field="parameters.glFiscalTypeId"/>
</link>
<container style="h3"><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="ComparativeIncomeStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3"><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ComparativeExpenseStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<container><label style="h3" text="${uiLabelMap.AccountingPeriod1NetIncome}: ${period1TotalNetIncome}"/></container>
<container><label style="h3" text="${uiLabelMap.AccountingPeriod2NetIncome}: ${period2TotalNetIncome}"/></container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatementsPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="isPdf" value="true" type="Boolean"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="currencyUomId" from-field="parameters.currencyUomId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/ComparativeIncomeStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container style="h3"><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="ComparativeIncomeStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3"><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ComparativeExpenseStatementList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label style="h3" text="${uiLabelMap.AccountingPeriod1NetIncome}: ${period1TotalNetIncome}"/></container>
<container><label style="h3" text="${uiLabelMap.AccountingPeriod2NetIncome}: ${period2TotalNetIncome}"/></container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatementsCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
<set field="currencyUomId" from-field="parameters.currencyUomId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/reports/ComparativeIncomeStatement.groovy"/>
</actions>
<widgets>
<container><label text="${uiLabelMap.AccountingIncome}"/></container>
<include-form name="ComparativeIncomeStatementsCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label text="${uiLabelMap.AccountingExpenses}"/></container>
<include-form name="ComparativeExpenseStatementsCsv" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container><label text="${uiLabelMap.AccountingPeriod1NetIncome}: ${period1TotalNetIncome}"/></container>
<container><label text="${uiLabelMap.AccountingPeriod2NetIncome}: ${period2TotalNetIncome}"/></container>
</widgets>
</section>
</screen>
</screens>