Files
ofbiz-framework/applications/accounting/widget/ReportFinancialSummaryForms.xml
T
Jacopo Cappellato 40757f357b Pretty big enhancements for the accounting processes and demo data:
1) completely refactored the trial balance report: now it is based on GLAccountHistory and no more on GlAccountOrganization records; the main advantage is that now it it possible to run the report per different financial time periods
2) big enhancements to the demo data: data was incomplete or wrong and this was affecting reports and the financial time period closing process
3) several fixes for the financial time period process
More fixes and enhancements will come, but now the closing process works fine and the financial reports make sense.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885256 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 18:32:31 +00:00

577 lines
37 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="BaseSummaryOptions" type="single" header-row-style="header-row" default-table-style="basic-table">
<field name="month" title="${uiLabelMap.CommonMonth}" required-field="true">
<drop-down allow-empty="false">
<option key="01" description="${uiLabelMap.CommonJanuary}"/>
<option key="02" description="${uiLabelMap.CommonFebruary}"/>
<option key="03" description="${uiLabelMap.CommonMarch}"/>
<option key="04" description="${uiLabelMap.CommonApril}"/>
<option key="05" description="${uiLabelMap.CommonMay}"/>
<option key="06" description="${uiLabelMap.CommonJune}"/>
<option key="07" description="${uiLabelMap.CommonJuly}"/>
<option key="08" description="${uiLabelMap.CommonAugust}"/>
<option key="09" description="${uiLabelMap.CommonSeptember}"/>
<option key="10" description="${uiLabelMap.CommonOctober}"/>
<option key="11" description="${uiLabelMap.CommonNovember}"/>
<option key="12" description="${uiLabelMap.CommonDecember}"/>
</drop-down>
</field>
<field name="year" title="${uiLabelMap.CommonYear}" required-field="true"><text size="4"/></field>
<field name="organizationPartyId" required-field="false">
<drop-down allow-empty="true" no-current-selected-key="Company">
<entity-options entity-name="PartyRoleNameDetail" description="${groupName} [${partyId}]" key-field-name="partyId">
<entity-constraint name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
<entity-order-by field-name="groupName"/>
</entity-options>
</drop-down>
</field>
<field name="currencyUomId" required-field="false">
<drop-down allow-empty="true" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
<entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
</form>
<form name="SalesInvoiceByProductCategorySummaryOptions" type="single" target="SalesInvoiceByProductCategorySummary" extends="BaseSummaryOptions"
header-row-style="header-row" default-table-style="basic-table">
<field name="rootProductCategoryId" title="${uiLabelMap.ProductCategoryId}" required-field="true"><lookup target-form-name="LookupProductCategory"/></field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="SalesInvoiceByProductGlAccountSummaryOptions" type="single" target="SalesInvoiceByProductGlAccountSummary" extends="BaseSummaryOptions"
header-row-style="header-row" default-table-style="basic-table">
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="PaymentByMethodSummaryOptions" type="single" target="PaymentByMethodSummary" extends="BaseSummaryOptions"
header-row-style="header-row" default-table-style="basic-table">
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="InventoryIssueSummaryOptions" type="single" target="InventoryIssueSummary" extends="BaseSummaryOptions"
header-row-style="header-row" default-table-style="basic-table">
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="FinancialAccountSummaryOptions" type="single" target="FinancialAccountSummary" extends="BaseSummaryOptions"
header-row-style="header-row" default-table-style="basic-table">
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="IncomeStatementParameters" type="single" header-row-style="header-row" default-table-style="basic-table">
<field name="isIncomeStatement"><hidden value="true"/></field>
<field name="selectedMonth" title="${uiLabelMap.CommonMonth}">
<drop-down>
<list-options list-name="monthList" key-name="value" description="${description}"/>
</drop-down>
</field>
<field name="fromDate" required-field="false"><date-time type="timestamp"/></field>
<field name="thruDate" required-field="false"><date-time type="timestamp"/></field>
<field name="glFiscalTypeId" title="${uiLabelMap.FormFieldTitle_glFiscalType}">
<drop-down>
<entity-options entity-name="GlFiscalType" description="${description}">
<entity-order-by field-name="glFiscalTypeId"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit" tooltip="Please enter From and Thru date in fields above"><submit button-type="button"/></field>
</form>
<form name="IncomeStatementList" type="list" list-name="glAccountIncomeList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId" from-field="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId" use-when="isPdf != true">
<hyperlink target="FindAcctgTransEntries" description="${glAccountId}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="${glAccountId}"/></field>
<field name="accountName"><display description="${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalOfCurrentFiscalPeriod"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="ExpenseStatementList" type="list" list-name="glAccountExpenseList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId" from-field="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId" use-when="isPdf != true">
<hyperlink target="FindAcctgTransEntries" description="${glAccountId}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="${glAccountId}"/></field>
<field name="accountName"><display description="${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalOfCurrentFiscalPeriod"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetParameters" type="single" target="prepareBalanceSheet"
header-row-style="header-row" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="thruDate"><date-time/></field>
<field name="glFiscalTypeId" title="${uiLabelMap.FormFieldTitle_glFiscalType}">
<drop-down>
<entity-options entity-name="GlFiscalType" description="${description}">
<entity-order-by field-name="glFiscalTypeId"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ComparativeBalanceSheetParameters" type="single" target="prepareComparativeBalanceSheet"
header-row-style="header-row" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="period1ThruDate"><date-time/></field>
<field name="period1GlFiscalTypeId">
<drop-down>
<entity-options entity-name="GlFiscalType" key-field-name="glFiscalTypeId" description="${description}">
<entity-order-by field-name="glFiscalTypeId"/>
</entity-options>
</drop-down>
</field>
<field name="period2ThruDate"><date-time/></field>
<field name="period2GlFiscalTypeId">
<drop-down>
<entity-options entity-name="GlFiscalType" key-field-name="glFiscalTypeId" description="${description}">
<entity-order-by field-name="glFiscalTypeId"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="BalanceSheetAssetList" type="list" list-name="assetBalancesList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId" use-when="isPdf != true">
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount" title-area-style="tableheadmedium" widget-style="tabletextright"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetLiabilityList" type="list" list-name="liabilityBalancesList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId" use-when="isPdf != true">
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount" title-area-style="tableheadmedium" widget-style="tabletextright"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetEquityList" type="list" list-name="equityBalancesList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId" use-when="isPdf != true">
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount" title-area-style="tableheadmedium" widget-style="tabletextright"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="FindTransactionTotals" type="single" target="TransactionTotals" title="Find list of transaction totals"
header-row-style="header-row" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="fromDate"><date-time/></field>
<field name="thruDate"><date-time/></field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="PostedTransactionTotalList" type="list" list-name="postedTransTotalList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId">
<hyperlink target="GlAccountNavigate" description="${glAccountId}">
<parameter param-name="glAccountId"/>
</hyperlink>
</field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="UnpostedTransactionTotalList" type="list" list-name="unpostedTransTotalList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId">
<hyperlink target="GlAccountNavigate" description="${glAccountId}">
<parameter param-name="glAccountId"/>
</hyperlink>
</field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="PostedAndUnpostedTransactionTotalList" type="list" list-name="postedAndUnpostedTransTotalList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId">
<hyperlink target="GlAccountNavigate" description="${glAccountId}">
<parameter param-name="glAccountId"/>
</hyperlink>
</field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="PostedTransactionTotalListCsv" type="list" list-name="postedTransTotalList" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId"><display/></field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="UnpostedTransactionTotalListCsv" type="list" list-name="unpostedTransTotalList" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId"><display/></field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="PostedAndUnpostedTransactionTotalListCsv" type="list" list-name="postedAndUnpostedTransTotalList" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="glAccountId"><display/></field>
<field name="accountName" entry-name="glAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
<field name="debit"><display type="currency" currency="${currencyUomId}"/></field>
<field name="credit"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="IncomeStatementListCsv" type="list" list-name="glAccountIncomeList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount"/>
</row-actions>
<field name="glAccountId"><display description="${glAccountId}"/></field>
<field name="glAccountName"><display description="${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalOfCurrentFiscalPeriod"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="ExpenseStatementListCsv" type="list" list-name="glAccountExpenseList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount"/>
</row-actions>
<field name="glAccountId"><display description="${glAccountId}"/></field>
<field name="glAccountName"><display description="${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalOfCurrentFiscalPeriod"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetAssetListCsv" type="list" list-name="assetBalancesList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetLiabilityListCsv" type="list" list-name="liabilityBalancesList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="BalanceSheetEquityListCsv" type="list" list-name="equityBalancesList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount">
<field-map field-name="glAccountId"/>
</entity-one>
</row-actions>
<field name="glAccountId"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="totalAmount"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="GlAccountTrialBalance" type="single" target="GlAccountTrialBalance">
<actions>
<entity-and entity-name="CustomTimePeriod" list="customTimePeriods">
<field-map field-name="organizationPartyId"/>
<field-map field-name="periodTypeId" value="FISCAL_YEAR"/>
</entity-and>
</actions>
<field name="organizationPartyId"><hidden/></field>
<field name="glAccountId" title="${uiLabelMap.AccountingGlAccountId}">
<drop-down>
<entity-options entity-name="GlAccountOrganizationAndClass" description="${glAccountId} ${accountName}">
<entity-constraint name="organizationPartyId" operator="equals" env-name="organizationPartyId"/>
<entity-order-by field-name="glAccountId"/>
</entity-options>
</drop-down>
</field>
<field name="timePeriod">
<drop-down>
<list-options list-name="customTimePeriods" key-name="customTimePeriodId" description="${fromDate} - ${thruDate}"/>
</drop-down>
</field>
<field name="isPosted">
<drop-down>
<option description="${uiLabelMap.CommonYes}" key="Y"/>
<option description="${uiLabelMap.CommonNo}" key="N"/>
<option description="${uiLabelMap.CommonAll}" key="ALL"/>
</drop-down>
</field>
<field name="submitButton" widget-style="buttontext" action=""><submit button-type="text-link"/></field>
</form>
<form name="MonthlyTrialBalance" type="single" target="MonthlyTrialBalance" title="Find list of monthly transaction totals"
header-row-style="header-row" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="selectedMonth">
<drop-down>
<list-options list-name="monthList" key-name="value" description="${description}"/>
</drop-down>
</field>
<field name="posted">
<drop-down>
<option description="${uiLabelMap.CommonY}" key="Y"/>
<option description="${uiLabelMap.CommonN}" key="N"/>
<option description="${uiLabelMap.CommonAll}" key="All"/>
</drop-down>
</field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="MonthlyPostedTransactionList" type="list" list-name="postedTransTotalList" paginate-target="MonthlyTrialBalance"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="isPosted" field-name="parameters.isPosted"><hidden/></field>
<field name="accountCode" title="${uiLabelMap.FormFieldTitle_accountCode}" entry-name="glAccountId">
<display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountCode}"/>
</field>
<field name="accountName" title="${uiLabelMap.FormFieldTitle_accountName}" entry-name="glAccountId">
<display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/>
</field>
<field name="openingBalanceCredit">
<display description="${openingBalanceCredit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="openingBalanceDebit">
<display description="${openingBalanceDebit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="monthAmountCredit">
<display description="${credit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="monthAmountDebit">
<display description="${debit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="closingBalanceCredit">
<display description="${openingBalanceCredit + credit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="closingBalanceDebit">
<display description="${openingBalanceDebit + debit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="yearToDateBalanceCredit">
<display description="${openingBalanceCredit + credit}" type="currency" currency="${currencyUomId}"/>
</field>
<field name="yearToDateBalanceDebit">
<display description="${openingBalanceDebit + debit}" type="currency" currency="${currencyUomId}"/>
</field>
</form>
<form name="MonthlyUnpostedTransactionList" type="list" list-name="unpostedTransTotalList" paginate-target="MonthlyTrialBalance"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar"
extends="MonthlyPostedTransactionList" extends-resource="component://accounting/widget/ReportFinancialSummaryForms.xml">
<field name="isPosted" field-name="parameters.isPosted"><hidden/></field>
</form>
<form name="MonthlyPostedUnpostedTransactionList" type="list" list-name="postedAndUnpostedTransTotalList" paginate-target="MonthlyTrialBalance"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar"
extends="MonthlyPostedTransactionList" extends-resource="component://accounting/widget/ReportFinancialSummaryForms.xml">
<field name="isPosted" field-name="parameters.isPosted"><hidden/></field>
</form>
<form name="CostCenter" type="single" header-row-style="header-row" target="getGlAcctgOrgWithPostedBalanceSplit" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="fromDate" required-field="false"><date-time type="timestamp"/></field>
<field name="thruDate" required-field="false"><date-time type="timestamp"/></field>
<field name="timePeriod" required-field="false">
<drop-down>
<list-options list-name="customTimePeriods" key-name="customTimePeriodId" description="${fromDate} - ${thruDate}"/>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit" tooltip="Please enter From and Thru date or select financial time period in fields above"><submit button-type="button"/></field>
</form>
<form name="InventoryValuation" type="single" target="InventoryValuation" header-row-style="header-row" default-table-style="basic-table">
<field name="facilityId" position="1">
<drop-down allow-empty="true">
<entity-options entity-name="Facility" description="${facilityName}">
<entity-constraint name="ownerPartyId" operator="equals" env-name="organizationPartyId"/>
<entity-order-by field-name="facilityId"/>
</entity-options>
</drop-down>
</field>
<field name="cogsMethodId" position="2">
<drop-down allow-empty="false">
<!--TODO for now Average Cost is being calculated-->
<!--<entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
<entity-constraint name="enumTypeId" operator="equals" value="COGS_METHODS"/>
<entity-order-by field-name="description"/>
</entity-options>-->
<option key="COGS_AVG_COST" description="${uiLabelMap.ProductAverageCost}"/>
</drop-down>
</field>
<field name="productId" position="1"><lookup target-form-name="LookupProduct"/></field>
<field name="productCategoryId" position="2"><lookup target-form-name="LookupProductCategory"/></field>
<field name="fromDate" position="1"><date-time/></field>
<field name="thruDate" position="2"><date-time/></field>
<field name="organizationPartyId"><hidden/></field>
<field name="showSearchResults"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="InventoryValuationList" extends="ListInventoryAverageCosts" extends-resource="component://product/widget/facility/FacilityForms.xml"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar" list-name="inventoryValuationList" paginate-target="InventoryValuation">
<field name="productAverageCost" use-when="currencyUomId!=null"><display type="currency" currency="${currencyUomId}"/></field>
<field name="productAverageCost" use-when="currencyUomId==null" title="${uiLabelMap.FormFieldTitle_unitCost}"><display description="${uiLabelMap.ProductDifferentCurrencies}"/></field>
<field name="totalInventoryCost" use-when="currencyUomId!=null" title="${uiLabelMap.CommonTotalValue}"><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalInventoryCost" use-when="currencyUomId==null" title="${uiLabelMap.CommonTotalValue}"><display description="${uiLabelMap.ProductDifferentCurrencies}"/></field>
</form>
<form name="InventoryValuationCsv" type="list" list-name="inventoryValuationList" view-size="99999">
<field name="productId" title="${uiLabelMap.AccountingProductId}"><display/></field>
<field name="totalQuantityOnHand" title="${uiLabelMap.AccountingTotalQuantityOnHand}"><display/></field>
<field name="productAverageCost" use-when="currencyUomId!=null" title="${uiLabelMap.FormFieldTitle_unitCost}" ><display type="currency" currency="${currencyUomId}"/></field>
<field name="productAverageCost" use-when="currencyUomId==null" title="${uiLabelMap.FormFieldTitle_unitCost}" ><display description="${uiLabelMap.ProductDifferentCurrencies}"/></field>
<field name="totalInventoryCost" use-when="currencyUomId!=null" title="${uiLabelMap.CommonTotalValue}" ><display type="currency" currency="${currencyUomId}"/></field>
<field name="totalInventoryCost" use-when="currencyUomId==null" title="${uiLabelMap.CommonTotalValue}"><display description="${uiLabelMap.ProductDifferentCurrencies}"/></field>
</form>
<form name="ComparativeIncomeStatementParameters" type="single" header-row-style="header-row" default-table-style="basic-table">
<field name="period1FromDate" title="${uiLabelMap.FormFieldTitle_period1FromDate}" required-field="true" position="1"><date-time type="timestamp"/></field>
<field name="period1ThruDate" title="${uiLabelMap.FormFieldTitle_period1ThruDate}" required-field="true" position="2"><date-time type="timestamp"/></field>
<field name="period2FromDate" title="${uiLabelMap.FormFieldTitle_period2FromDate}" required-field="true" position="1"><date-time type="timestamp"/></field>
<field name="period2ThruDate" title="${uiLabelMap.FormFieldTitle_period2ThruDate}" required-field="true" position="2"><date-time type="timestamp"/></field>
<field name="glFiscalTypeId" title="${uiLabelMap.FormFieldTitle_glFiscalType}">
<drop-down>
<entity-options entity-name="GlFiscalType" description="${description}">
<entity-order-by field-name="glFiscalTypeId"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit" tooltip="Please enter From and Thru date in fields above"><submit button-type="button"/></field>
</form>
<form name="ComparativeIncomeStatementList" type="list" list-name="glAccountIncomeList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount"/>
</row-actions>
<field name="glAccountId" title="${uiLabelMap.AccountingGlAccountId}">
<hyperlink target="FindAcctgTransEntries" description="${glAccountId}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="glAccountId" use-when="isPdf == true"><display description="${glAccountId}"/></field>
<field name="accountName" title="${uiLabelMap.FormFieldTitle_accountName}"><display description="${glAccount.accountName}"/></field>
<field name="period1TotalAmount" title="${uiLabelMap.AccountingPeriod1TotalAmount}"><display type="currency" currency="${currencyUomId}"/></field>
<field name="period2TotalAmount" title="${uiLabelMap.AccountingPeriod1TotalAmount}"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="ComparativeExpenseStatementList" type="list" list-name="glAccountExpenseList" extends="ComparativeIncomeStatementList"/>
<form name="ComparativeIncomeStatementsCsv" type="list" list-name="glAccountIncomeList" view-size="99999">
<row-actions>
<entity-one entity-name="GlAccount" value-field="glAccount"/>
</row-actions>
<field name="glAccountId"><display description="${glAccountId}"/></field>
<field name="accountName" title="${uiLabelMap.FormFieldTitle_accountName}"><display description="${glAccount.accountName}"/></field>
<field name="period1TotalAmount" title="${uiLabelMap.AccountingPeriod1TotalAmount}"><display type="currency" currency="${currencyUomId}"/></field>
<field name="period2TotalAmount" title="${uiLabelMap.AccountingPeriod1TotalAmount}"><display type="currency" currency="${currencyUomId}"/></field>
</form>
<form name="ComparativeExpenseStatementsCsv" type="list" list-name="glAccountExpenseList" view-size="99999" extends="ComparativeIncomeStatementsCsv"/>
<form name="TrialBalanceFinancialTimePeriodSelection" type="single" header-row-style="header-row" target="TrialBalance" default-table-style="basic-table">
<field name="organizationPartyId"><hidden/></field>
<field name="customTimePeriodId" required-field="true">
<drop-down>
<entity-options entity-name="CustomTimePeriod" key-field-name="customTimePeriodId" description="${periodName}: ${fromDate} - ${thruDate}" filter-by-date="false">
<entity-constraint name="periodTypeId" operator="like" value="FISCAL_%"/>
<entity-order-by field-name="-thruDate"/>
<entity-order-by field-name="periodNum"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="TrialBalanceReport" type="list" list-name="glAccountAndHistories"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="GlAccountAndHistoryTotals" filter-by-date="false" list="glAccountAndHistories">
<condition-list>
<condition-expr field-name="organizationPartyId" operator="in" from-field="partyIds"/>
<condition-expr field-name="customTimePeriodId" operator="equals" from-field="parameters.customTimePeriodId"/>
</condition-list>
<select-field field-name="glAccountId"/>
<select-field field-name="accountCode"/>
<select-field field-name="accountName"/>
<select-field field-name="totalPostedDebits"/>
<select-field field-name="totalPostedCredits"/>
<select-field field-name="totalEndingBalance"/>
<order-by field-name="accountCode"/>
</entity-condition>
</actions>
<field name="glAccountId">
<hyperlink target="FindAcctgTransEntries" description="${glAccountId}">
<parameter param-name="glAccountId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="accountCode"><display description="${accountCode}"/></field>
<field name="accountName" title-area-style="tableheadwide"><display description="${accountName}"/></field>
<field name="totalPostedDebits" title="${uiLabelMap.AccountingDebitFlag}" widget-style="tabletextright"><display description="${totalPostedDebits}" type="currency" currency="${currencyUomId}"/></field>
<field name="totalPostedCredits" title="${uiLabelMap.AccountingCreditFlag}" widget-style="tabletextright"><display description="${totalPostedCredits}" type="currency" currency="${currencyUomId}"/></field>
<field name="totalEndingBalance" title="${uiLabelMap.AccountingEndingBalance}" widget-style="tabletextright"><display description="${totalEndingBalance}" type="currency" currency="${currencyUomId}"/></field>
</form>
</forms>