| <?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" required-field="true"> |
| <drop-down allow-empty="false"> |
| <option key="01" description="1-January"/><option key="02" description="2-February"/> |
| <option key="03" description="3-March"/><option key="04" description="4-April"/> |
| <option key="05" description="5-May"/><option key="06" description="6-June"/> |
| <option key="07" description="7-July"/><option key="08" description="8-August"/> |
| <option key="09" description="9-September"/><option key="10" description="10-October"/> |
| <option key="11" description="11-November"/><option key="12" description="12-December"/> |
| </drop-down> |
| </field> |
| <field name="year" 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="USD"> |
| <entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom"> |
| <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/> |
| <entity-order-by field-name="abbreviation"/> |
| </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" 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-name="glAccount"> |
| <field-map field-name="glAccountId"/> |
| </entity-one> |
| <set field="showDebit" value="${bsh:(postedBalance >= 0 && org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount)) || (postedBalance < 0 && org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount))}" type="Boolean"/> |
| <set field="showCredit" value="${bsh:(postedBalance >= 0 && org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount)) || (postedBalance < 0 && 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 && 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"> |
| <hyperlink target="FindAcctgTransEntries?glAccountId=${glAccountId}&organizationPartyId=${organizationPartyId}" 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/></field> |
| <field name="credit" use-when="showCredit"><display description="${absolutePostedBalance}" type="currency" currency="${currencyUomId}"/></field> |
| <field name="credit" use-when="showDebit"><display/></field> |
| <field name="glAccountId" use-when="showTotals"><display description="${uiLabelMap.CommonTotal}"/></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="IncomeStatementParameters" type="single" target="prepareIncomeStatement" |
| 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="glFiscalTypeId"> |
| <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="IncomeStatementList" type="list" list-name="glAccountTotalsList" |
| odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> |
| <row-actions> |
| <entity-one entity-name="GlAccount" value-name="glAccount"> |
| <field-map field-name="glAccountId"/> |
| </entity-one> |
| </row-actions> |
| <field name="glAccountId"> |
| <hyperlink target="FindAcctgTransEntries?glAccountId=${glAccountId}&organizationPartyId=${organizationPartyId}" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}"/> |
| </field> |
| <field name="totalAmount"><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"> |
| <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-name="glAccount"> |
| <field-map field-name="glAccountId"/> |
| </entity-one> |
| </row-actions> |
| <field name="glAccountId"> |
| <hyperlink target="FindAcctgTransEntries?glAccountId=${glAccountId}&organizationPartyId=${organizationPartyId}" 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-name="glAccount"> |
| <field-map field-name="glAccountId"/> |
| </entity-one> |
| </row-actions> |
| <field name="glAccountId"> |
| <hyperlink target="FindAcctgTransEntries?glAccountId=${glAccountId}&organizationPartyId=${organizationPartyId}" 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-name="glAccount"> |
| <field-map field-name="glAccountId"/> |
| </entity-one> |
| </row-actions> |
| <field name="glAccountId"> |
| <hyperlink target="FindAcctgTransEntries?glAccountId=${glAccountId}&organizationPartyId=${organizationPartyId}" 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"><display/></field> |
| <field name="debit"><display/></field> |
| <field name="credit"><display/></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"><display/></field> |
| <field name="debit"><display/></field> |
| <field name="credit"><display/></field> |
| </form> |
| </forms> |