Files
ofbiz-framework/applications/accounting/widget/ReportFinancialSummaryForms.xml
T
Ashish Vijaywargiya 6731a9e748 Applied patch from jira issue OFBIZ-2835 - Under Accounting - Report tab create a new screen for showing comparative income statements.
Following point is covered in this patch:
– Added option and functionality for generating CSV and PDF on same screen. 

Thanks Awdesh & Sumit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804993 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 14:22:29 +00:00

590 lines
40 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="TrialBalanceList" type="list" list-name="trialBalances"
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>
<set field="showDebit" value="${bsh:(postedBalance.compareTo(java.math.BigDecimal.ZERO) &gt;= 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) &lt; 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount))}" type="Boolean"/>
<set field="showCredit" value="${bsh:(postedBalance.compareTo(java.math.BigDecimal.ZERO) &gt;= 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) &lt; 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount))}" type="Boolean"/>
<set field="absolutePostedBalance" value="${bsh:(postedBalance.abs())}" type="BigDecimal"/>
<set field="showTotals" value="${bsh:(isLastRow != null &amp;&amp; isLastRow==true)}" type="Boolean"/>
<set field="debitTotal" from-field="parameters.debitTotal" type="BigDecimal"/>
<set field="creditTotal" from-field="parameters.creditTotal" type="BigDecimal"/>
<set field="parameters.debitTotal" value="${bsh:(showDebit ? (debitTotal.add(absolutePostedBalance)) : (debitTotal))}" type="BigDecimal"/>
<set field="parameters.creditTotal" value="${bsh:(showCredit ? (creditTotal.add(absolutePostedBalance)) : (creditTotal))}" type="BigDecimal"/>
</row-actions>
<field name="glAccountId" use-when="!showTotals || 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" title-area-style="tableheadhuge"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="debit" use-when="showDebit" widget-style="tabletextright"><display description="${absolutePostedBalance}" type="currency" currency="${currencyUomId}"/></field>
<field name="debit" use-when="showCredit" widget-style="tabletextright"><display/></field>
<field name="credit" use-when="showCredit" widget-style="tabletextright"><display description="${absolutePostedBalance}" type="currency" currency="${currencyUomId}"/></field>
<field name="credit" use-when="showDebit" widget-style="tabletextright"><display/></field>
<field name="glAccountId" use-when="showTotals"><display description="${uiLabelMap.CommonTotal}"/></field>
<field name="debit" use-when="showTotals" widget-style="tabletextright"><display description="${parameters.debitTotal}" type="currency" currency="${currencyUomId}"/></field>
<field name="credit" use-when="showTotals" widget-style="tabletextright"><display description="${parameters.creditTotal}" type="currency" currency="${currencyUomId}"/></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"><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"><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"><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="TrialBalanceSearchResultsCsv" type="list" list-name="trialBalances"
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>
<set field="showDebit" value="${bsh:(postedBalance.compareTo(java.math.BigDecimal.ZERO) &gt;= 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) &lt; 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount))}" type="Boolean"/>
<set field="showCredit" value="${bsh:(postedBalance.compareTo(java.math.BigDecimal.ZERO) &gt;= 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) &lt; 0 &amp;&amp; org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount))}" type="Boolean"/>
<set field="absolutePostedBalance" value="${bsh:(postedBalance.abs())}" type="BigDecimal"/>
<set field="showTotals" value="${bsh:(isLastRow != null &amp;&amp; isLastRow==true)}" type="Boolean"/>
<set field="debitTotal" from-field="parameters.debitTotal" type="BigDecimal"/>
<set field="creditTotal" from-field="parameters.creditTotal" type="BigDecimal"/>
<set field="noValue" value="0" type="BigDecimal"/>
<set field="parameters.debitTotal" value="${bsh:(showDebit ? (debitTotal.add(absolutePostedBalance)) : (debitTotal))}" type="BigDecimal"/>
<set field="parameters.creditTotal" value="${bsh:(showCredit ? (creditTotal.add(absolutePostedBalance)) : (creditTotal))}" type="BigDecimal"/>
</row-actions>
<field name="glAccountId" use-when="!showTotals"><display description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/></field>
<field name="debit" use-when="showDebit"><display description="${absolutePostedBalance}" type="currency" currency="${currencyUomId}"/></field>
<field name="debit" use-when="showCredit"><display description="${noValue}"/></field>
<field name="credit" use-when="showCredit"><display description="${absolutePostedBalance}" type="currency" currency="${currencyUomId}"/></field>
<field name="credit" use-when="showDebit"><display description="${noValue}"/></field>
<field name="glAccountId" use-when="showTotals"><display description="${uiLabelMap.Total}"/></field>
<field name="debit" use-when="showTotals"><display description="${parameters.debitTotal}" type="currency" currency="${currencyUomId}"/></field>
<field name="credit" use-when="showTotals"><display description="${parameters.creditTotal}" 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/webapp/facility/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"/>
</forms>