blob: 08a3c7c04341868179791e51ecc46125044f909c [file] [log] [blame]
<?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"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen 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="${groovy:org.apache.ofbiz.base.util.UtilDateTime.nowDateString(&quot;MM&quot;)}"/>
<set field="year" from-field="parameters.year" default-value="${groovy:org.apache.ofbiz.base.util.UtilDateTime.nowDateString(&quot;yyyy&quot;)}"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="h1" text="${uiLabelMap.PageTitleFinancialSummaryReportOptions}"/>
<screenlet title="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}">
<include-form name="SalesInvoiceByProductCategorySummaryOptions" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</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="${groovy:org.apache.ofbiz.base.util.UtilDateTime.nowDateString(&quot;MM&quot;)}"/>
<set field="year" from-field="parameters.year" type="Integer" default-value="${groovy:org.apache.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/src/main/groovy/org/apache/ofbiz/accounting/reports/SalesInvoiceByProductCategorySummary.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleSalesInvoiceByProductCategorySummary}">
<platform-specific>
<html><html-template location="component://accounting/template/reports/SalesInvoiceByProductCategorySummary.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="TrialBalance">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingTrialBalance"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TrialBalance"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|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[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TrialBalance.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="h3">
<label text="${uiLabelMap.AccountingConsolidatedDataFromDivisions}"/>
</container>
<include-form name="TrialBalanceFinancialTimePeriodSelection" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<section>
<condition>
<not><if-empty field="parameters.customTimePeriodId"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingTrialBalance}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="buttontext" target="TrialBalanceSearchResultsCsv.csv">
<parameter param-name="customTimePeriodId" from-field="parameters.customTimePeriodId"/>
<parameter param-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="buttontext" target="TrialBalanceSearchResultsPdf.pdf" target-window="_BLANK">
<parameter param-name="customTimePeriodId" from-field="parameters.customTimePeriodId"/>
<parameter param-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</link>
<include-grid name="TrialBalanceReport" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3">
<label text="${uiLabelMap.AccountingDebitFlag}: ${postedDebitsTotal}"/>
</container>
<container style="h3">
<label text="${uiLabelMap.AccountingCreditFlag}: ${postedCreditsTotal}"/>
</container>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TrialBalanceSearchResultsCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|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[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TrialBalance.groovy"/>
</actions>
<widgets>
<container>
<include-grid name="TrialBalanceReport" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="TrialBalanceSearchResultsPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|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[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<entity-one entity-name="CustomTimePeriod" value-field="customTimePeriod" auto-field-map="true" use-cache="true"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TrialBalance.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container style="h1">
<label text="${uiLabelMap.AccountingTrialBalance}"/>
</container>
<container style="h2">
<label text="${uiLabelMap.AccountingTimePeriod}: ${customTimePeriod.periodName}: ${customTimePeriod.fromDate} - ${customTimePeriod.thruDate}"/>
</container>
<container style="h3">
<label text="${uiLabelMap.AccountingConsolidatedDataFromDivisions}"/>
</container>
<include-grid name="TrialBalanceReport" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<container style="h3">
<label text="${uiLabelMap.AccountingDebitFlag}: ${postedDebitsTotal}"/>
</container>
<container style="h3">
<label text="${uiLabelMap.AccountingCreditFlag}: ${postedCreditsTotal}"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BalanceSheet">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="BalanceSheet"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingBalanceSheet}">
<include-form name="BalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<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="glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="BalanceSheet.pdf" target-window="_BLANK">
<parameter param-name="organizationPartyId"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
<parameter param-name="glFiscalTypeId" from-field="glFiscalTypeId"/>
</link>
<screenlet title="${uiLabelMap.AccountingBalanceSheet}">
<label style="h3" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="BalanceSheetAssets" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="BalanceSheetLiabilities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="BalanceSheetEquities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="BalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BalanceSheetPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingBalanceSheet}"/>
<include-form name="BalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h2" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="BalanceSheetAssets" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h2" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="BalanceSheetLiabilities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h2" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="BalanceSheetEquities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h2" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="BalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BalanceSheetCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="BalanceSheetAssets" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="BalanceSheetLiabilities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="BalanceSheetEquities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="ComparativeBalanceSheet">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeBalanceSheet"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period1ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList1" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList1" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList1" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal1" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal1" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal1" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal1" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal1" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal1" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal1" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period2ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList2" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList2" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList2" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal2" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal2" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal2" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal2" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal2" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal2" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal2" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeBalanceSheet.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingComparativeBalanceSheet}">
<include-form name="ComparativeBalanceSheetParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="ComparativeBalanceSheet.csv">
<parameter param-name="organizationPartyId"/>
<parameter param-name="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId"/>
<parameter param-name="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="ComparativeBalanceSheet.pdf" target-window="_BLANK">
<parameter param-name="organizationPartyId"/>
<parameter param-name="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId"/>
<parameter param-name="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId" from-field="period2GlFiscalTypeId"/>
</link>
<screenlet title="${uiLabelMap.AccountingComparativeBalanceSheet}">
<label style="h3" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="ComparativeBalanceSheetAssets" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="ComparativeBalanceSheetLiabilities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="ComparativeBalanceSheetEquities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeBalanceSheetPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingComparativeBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeBalanceSheet"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period1ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList1" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList1" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList1" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal1" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal1" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal1" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal1" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal1" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal1" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal1" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period2ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList2" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList2" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList2" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal2" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal2" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal2" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal2" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal2" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal2" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal2" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeBalanceSheet.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingComparativeBalanceSheet}"/>
<include-form name="ComparativeBalanceSheetParametersOneColumn" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="ComparativeBalanceSheetAssetsPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="ComparativeBalanceSheetLiabilitiesPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="ComparativeBalanceSheetEquitiesPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeBalanceSheetCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingComparativeBalanceSheet"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeBalanceSheet"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period1ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList1" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList1" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList1" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal1" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal1" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal1" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal1" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal1" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal1" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal1" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="thruDate" from-field="period2ThruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/BalanceSheet.groovy"/>
<set field="assetAccountBalanceList2" from-field="assetAccountBalanceList"/>
<set field="liabilityAccountBalanceList2" from-field="liabilityAccountBalanceList"/>
<set field="equityAccountBalanceList2" from-field="equityAccountBalanceList"/>
<set field="assetBalanceTotal2" from-field="assetBalanceTotal"/>
<set field="currentAssetBalanceTotal2" from-field="currentAssetBalanceTotal"/>
<set field="longtermAssetBalanceTotal2" from-field="longtermAssetBalanceTotal"/>
<set field="liabilityBalanceTotal2" from-field="liabilityBalanceTotal"/>
<set field="currentLiabilityBalanceTotal2" from-field="currentLiabilityBalanceTotal"/>
<set field="equityBalanceTotal2" from-field="equityBalanceTotal"/>
<set field="liabilityEquityBalanceTotal2" from-field="liabilityEquityBalanceTotal"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeBalanceSheet.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingAssets}"/>
<include-grid name="ComparativeBalanceSheetAssets" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingLiabilities}"/>
<include-grid name="ComparativeBalanceSheetLiabilities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingEquities}"/>
<include-grid name="ComparativeBalanceSheetEquities" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="TransactionTotals">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingTransactionTotals"/>
<set field="labelTitleProperty" value="AccountingTransactionTotals"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TransactionTotals"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|organizationPartyId'), 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"></field-map>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/MonthSelection.groovy"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingTransactionTotals}">
<include-form name="TransactionSelectionForm" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<and>
<not><if-empty field="fromDate"/></not>
<not><if-empty field="thruDate"/></not>
<not><if-empty field="organizationPartyId"/></not>
</and>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="TransactionTotalsCsv.csv">
<parameter param-name="fromDate"/>
<parameter param-name="thruDate"/>
<parameter param-name="glFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="TransactionTotalsPdf.pdf" target-window="_BLANK">
<parameter param-name="fromDate"/>
<parameter param-name="thruDate"/>
<parameter param-name="glFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
</link>
<screenlet title="${uiLabelMap.AccountingPostedTransactionTotals}">
<include-grid name="PostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingUnPostedTransactionTotals}">
<include-grid name="UnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}">
<include-grid name="PostedAndUnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TransactionTotalsPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingTransactionTotals"/>
<set field="labelTitleProperty" value="AccountingTransactionTotals"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TransactionTotals"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|organizationPartyId'), 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"></field-map>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<include-form name="FindTransactionTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-grid name="PostedTransactionTotalListPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingUnPostedTransactionTotals}"/>
<include-grid name="UnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedAndUnpostedTransactionTotals}"/>
<include-grid name="PostedAndUnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TransactionTotalsCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="AccountingTransactionTotals"/>
<set field="labelTitleProperty" value="AccountingTransactionTotals"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="TransactionTotals"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|organizationPartyId'), 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/TransactionTotals.groovy"/>
</actions>
<widgets>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-grid name="PostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-grid name="UnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label text="${uiLabelMap.AccountingPostedTransactionTotals}"/>
<include-grid name="PostedAndUnpostedTransactionTotalList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="IncomeStatement">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="IncomeStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/MonthSelection.groovy"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingIncomeStatement}">
<include-form name="TransactionSelectionForm" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingIncomeStatement}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="IncomeStatementListCsv.csv">
<parameter param-name="fromDate" from-field="fromDate"/>
<parameter param-name="thruDate" from-field="thruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="IncomeStatementListPdf.pdf" target-window="_BLANK">
<parameter param-name="fromDate" from-field="fromDate"/>
<parameter param-name="thruDate" from-field="thruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="glFiscalTypeId"/>
</link>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="IncomeStatementRevenues" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="IncomeStatementExpenses" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="IncomeStatementIncome" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="BalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomeStatementListPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingIncomeStatement}"/>
<include-form name="FindTransactionTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="IncomeStatementRevenues" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="IncomeStatementExpenses" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="IncomeStatementIncome" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="BalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomeStatementListCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="IncomeStatementRevenues" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="IncomeStatementExpenses" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="IncomeStatementIncome" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="BalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatement">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeIncomeStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList1" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal1" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList1" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal1" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense1" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList1" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal1" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin1" from-field="grossMargin"/>
<set field="sgaExpense1" from-field="sgaExpense"/>
<set field="incomeFromOperations1" from-field="incomeFromOperations"/>
<set field="netIncome1" from-field="netIncome"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList2" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal2" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList2" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal2" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense2" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList2" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal2" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin2" from-field="grossMargin"/>
<set field="sgaExpense2" from-field="sgaExpense"/>
<set field="incomeFromOperations2" from-field="incomeFromOperations"/>
<set field="netIncome2" from-field="netIncome"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeIncomeStatement.groovy"/>
</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>
<screenlet title="${uiLabelMap.AccountingComparativeIncomeStatement}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="ComparativeIncomeStatements.csv">
<parameter param-name="period1FromDate" from-field="period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<parameter param-name="period2FromDate" from-field="period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="ComparativeIncomeStatements.pdf" target-window="_BLANK">
<parameter param-name="period1FromDate" from-field="period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<parameter param-name="period2FromDate" from-field="period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
</link>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="ComparativeIncomeStatementRevenues" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="ComparativeIncomeStatementExpenses" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="ComparativeIncomeStatementIncome" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatementsPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeIncomeStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList1" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal1" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList1" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal1" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense1" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList1" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal1" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin1" from-field="grossMargin"/>
<set field="sgaExpense1" from-field="sgaExpense"/>
<set field="incomeFromOperations1" from-field="incomeFromOperations"/>
<set field="netIncome1" from-field="netIncome"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList2" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal2" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList2" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal2" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense2" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList2" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal2" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin2" from-field="grossMargin"/>
<set field="sgaExpense2" from-field="sgaExpense"/>
<set field="incomeFromOperations2" from-field="incomeFromOperations"/>
<set field="netIncome2" from-field="netIncome"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeIncomeStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingComparativeIncomeStatement}"/>
<include-form name="ComparativeIncomeStatementParametersOneColumn" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="ComparativeIncomeStatementRevenuesPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="ComparativeIncomeStatementExpensesPdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="ComparativeIncomeStatementIncomePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeIncomeStatementsCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeIncomeStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeIncomeStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList1" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal1" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList1" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal1" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense1" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList1" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal1" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin1" from-field="grossMargin"/>
<set field="sgaExpense1" from-field="sgaExpense"/>
<set field="incomeFromOperations1" from-field="incomeFromOperations"/>
<set field="netIncome1" from-field="netIncome"/>
<set field="balanceTotalList1" from-field="balanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/IncomeStatement.groovy"/>
<set field="revenueAccountBalanceList2" from-field="revenueAccountBalanceList"/>
<set field="revenueAccountBalanceTotal2" from-field="revenueAccountBalanceTotal"/>
<set field="expenseAccountBalanceList2" from-field="expenseAccountBalanceList"/>
<set field="expenseAccountBalanceTotal2" from-field="expenseAccountBalanceTotal"/>
<set field="cogsExpense2" from-field="cogsExpense"/>
<set field="incomeAccountBalanceList2" from-field="incomeAccountBalanceList"/>
<set field="incomeAccountBalanceTotal2" from-field="incomeAccountBalanceTotal"/>
<set field="grossMargin2" from-field="grossMargin"/>
<set field="sgaExpense2" from-field="sgaExpense"/>
<set field="incomeFromOperations2" from-field="incomeFromOperations"/>
<set field="netIncome2" from-field="netIncome"/>
<set field="balanceTotalList2" from-field="balanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeIncomeStatement.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingRevenues}"/>
<include-grid name="ComparativeIncomeStatementRevenues" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingExpenses}"/>
<include-grid name="ComparativeIncomeStatementExpenses" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingIncome}"/>
<include-grid name="ComparativeIncomeStatementIncome" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</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"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/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/template/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"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/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/template/reports/GlAccountTrialBalanceReport.fo.ftl"/>
</xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountBalanceByCostCenter">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="FormFieldTitle_costCenters"/>
<set field="labelTitleProperty" value="FormFieldTitle_costCenters"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="GlAccountBalanceByCostCenter"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|organizationPartyId'), 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<service service-name="getPartyAccountingPreferences" result-map="result" auto-field-map="true">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CostCenters.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.FormFieldTitle_costCenters}">
<include-form name="SelectAcctReportPeriod" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<section>
<condition>
<and>
<not><if-empty field="fromDate"/></not>
<not><if-empty field="thruDate"/></not>
<not><if-empty field="organizationPartyId"/></not>
</and>
</condition>
<widgets>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="GlAccountBalanceByCostCenter.pdf" target-window="_BLANK">
<parameter param-name="organizationPartyId" from-field="parameters.organizationPartyId"/>
<parameter param-name="fromDate" from-field="parameters.fromDate"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
</link>
<screenlet title="${uiLabelMap.FormFieldTitle_costCenters}">
<platform-specific>
<html>
<html-template location="component://accounting/template/reports/CostCentersReport.ftl"/>
</html>
</platform-specific>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlAccountBalanceByCostCenterPdf">
<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"/>
<set field="partyIds" value="${groovy:org.apache.ofbiz.party.party.PartyWorker.getAssociatedPartyIdsByRelationshipType(delegator, parameters.get('ApplicationDecorator|organizationPartyId'), 'GROUP_ROLLUP')}" type="List"/>
<set field="partyIds[]" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CostCenters.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/template/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"/>
<set field="tabButtonItem2" value="InventoryValuation"/>
<set field="parameters.thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
</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>
<widgets>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="InventoryValuation.pdf" target-window="_BLANK">
<parameter param-name="organizationPartyId"/>
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
<parameter param-name="productId" from-field="parameters.productId"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
</link>
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="InventoryValuation.csv">
<parameter param-name="organizationPartyId"/>
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
<parameter param-name="productId" from-field="parameters.productId"/>
<parameter param-name="thruDate" from-field="parameters.thruDate"/>
</link>
<screenlet title="${uiLabelMap.AccountingInventoryValuationList}">
<include-grid name="InventoryValuationList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</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="viewSize" value="99999"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingInventoryValuation}"/>
<include-grid name="InventoryValuationList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</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="viewSize" value="99999"/>
</actions>
<widgets>
<container>
<include-grid name="InventoryValuationList" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="CashFlowStatement">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingCashFlowStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="CashFlowStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/MonthSelection.groovy"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingCashFlowStatement}">
<include-form name="CashFlowStatementParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingCashFlowStatement}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="CashFlowStatementListCsv.csv">
<parameter param-name="fromDate" from-field="fromDate"/>
<parameter param-name="thruDate" from-field="thruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="glFiscalTypeId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="CashFlowStatementListPdf.pdf" target-window="_BLANK">
<parameter param-name="fromDate" from-field="fromDate"/>
<parameter param-name="thruDate" from-field="thruDate"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="glFiscalTypeId" from-field="glFiscalTypeId"/>
</link>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="CashFlowStatementOpeningCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="CashFlowStatementPeriodCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="CashFlowStatementClosingCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="CashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CashFlowStatementListPdf">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingCashFlowStatement}"/>
<include-grid name="FindCashFlowTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="CashFlowStatementOpeningCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="CashFlowStatementPeriodCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="CashFlowStatementClosingCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="CashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CashFlowStatementListCsv">
<section>
<actions>
<set field="viewSize" value="99999"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="CashFlowStatementOpeningCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="CashFlowStatementPeriodCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="CashFlowStatementClosingCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="CashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
<screen name="ComparativeCashFlowStatement">
<section>
<actions>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeCashFlowStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeCashFlowStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList1" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList1" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList1" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList1" from-field="cashFlowBalanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList2" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList2" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList2" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList2" from-field="cashFlowBalanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeCashFlowStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonOrganizationAccountingReportsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingComparativeCashFlowStatement}">
<include-form name="ComparativeCashFlowStatementParameters" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingComparativeCashFlowStatement}">
<link text="${uiLabelMap.AccountingExportAsCsv}" style="button" target="ComparativeCashFlowStatement.csv">
<parameter param-name="period1FromDate" from-field="period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<parameter param-name="period2FromDate" from-field="period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
</link>
<link text="${uiLabelMap.AccountingExportAsPdf}" style="button" target="ComparativeCashFlowStatement.pdf" target-window="_BLANK">
<parameter param-name="period1FromDate" from-field="period1FromDate"/>
<parameter param-name="period1ThruDate" from-field="period1ThruDate"/>
<parameter param-name="period1GlFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<parameter param-name="period2FromDate" from-field="period2FromDate"/>
<parameter param-name="period2ThruDate" from-field="period2ThruDate"/>
<parameter param-name="period2GlFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<parameter param-name="organizationPartyId"/>
<parameter param-name="currencyUomId"/>
</link>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementOpeningCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementPeriodCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementClosingCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeCashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeCashFlowStatementPdf">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeCashFlowStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeCashFlowStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList1" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList1" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList1" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList1" from-field="cashFlowBalanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList2" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList2" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList2" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList2" from-field="cashFlowBalanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeCashFlowStatement.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1" text="${uiLabelMap.AccountingComparativeCashFlowStatement}"/>
<include-form name="ComparativeCashFlowStatementParametersOneColumn" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementOpeningCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementPeriodCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementClosingCashBalancePdf" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeCashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ComparativeCashFlowStatementCsv">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="viewSize" value="99999"/>
<set field="titleProperty" value="AccountingComparativeCashFlowStatement"/>
<set field="tabButtonItem" value="OrganizationAccountingReports"/>
<set field="tabButtonItem2" value="ComparativeCashFlowStatement"/>
<service service-name="getPartyAccountingPreferences" result-map="result">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
<!-- Get a default fromDate -->
<service service-name="findLastClosedDate" result-map="findLastClosedDateOutMap">
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
</service>
<set field="period1FromDate" from-field="parameters.period1FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period1ThruDate" from-field="parameters.period1ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period1GlFiscalTypeId" from-field="parameters.period1GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period1FromDate"/>
<set field="thruDate" from-field="period1ThruDate"/>
<set field="glFiscalTypeId" from-field="period1GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList1" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList1" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList1" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList1" from-field="cashFlowBalanceTotalList"/>
<set field="period2FromDate" from-field="parameters.period2FromDate" type="Timestamp" default-value="${findLastClosedDateOutMap.lastClosedDate}"/>
<set field="period2ThruDate" from-field="parameters.period2ThruDate" type="Timestamp" default-value="${nowTimestamp}"/>
<set field="period2GlFiscalTypeId" from-field="parameters.period2GlFiscalTypeId" default-value="ACTUAL"/>
<set field="fromDate" from-field="period2FromDate"/>
<set field="thruDate" from-field="period2ThruDate"/>
<set field="glFiscalTypeId" from-field="period2GlFiscalTypeId"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/CashFlowStatement.groovy"/>
<set field="openingCashBalanceList2" from-field="openingCashBalanceList"/>
<set field="periodCashBalanceList2" from-field="periodCashBalanceList"/>
<set field="closingCashBalanceList2" from-field="closingCashBalanceList"/>
<set field="cashFlowBalanceTotalList2" from-field="cashFlowBalanceTotalList"/>
<script location="component://accounting/src/main/groovy/org/apache/ofbiz/accounting/reports/ComparativeCashFlowStatement.groovy"/>
</actions>
<widgets>
<label style="h3" text="${uiLabelMap.AccountingOpeningCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementOpeningCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingPeriodCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementPeriodCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.AccountingClosingCashBalance}"/>
<include-grid name="ComparativeCashFlowStatementClosingCashBalance" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
<label style="h3" text="${uiLabelMap.CommonTotal}"/>
<include-grid name="ComparativeCashFlowBalanceTotals" location="component://accounting/widget/ReportFinancialSummaryForms.xml"/>
</widgets>
</section>
</screen>
</screens>