git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764195 13f79535-47bb-0310-9956-ffa450edef68
244 lines
15 KiB
XML
244 lines
15 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="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" 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) >= 0 && org.ofbiz.accounting.util.UtilAccounting.isDebitAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) < 0 && org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount))}" type="Boolean"/>
|
|
<set field="showCredit" value="${bsh:(postedBalance.compareTo(java.math.BigDecimal.ZERO) >= 0 && org.ofbiz.accounting.util.UtilAccounting.isCreditAccount(glAccount)) || (postedBalance.compareTo(java.math.BigDecimal.ZERO) < 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" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
|
|
<parameter param-name="glAccountId"/>
|
|
<parameter param-name="organizationPartyId"/>
|
|
</hyperlink>
|
|
</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-field="glAccount">
|
|
<field-map field-name="glAccountId"/>
|
|
</entity-one>
|
|
</row-actions>
|
|
<field name="glAccountId">
|
|
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
|
|
<parameter param-name="glAccountId"/>
|
|
<parameter param-name="organizationPartyId"/>
|
|
</hyperlink>
|
|
</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-field="glAccount">
|
|
<field-map field-name="glAccountId"/>
|
|
</entity-one>
|
|
</row-actions>
|
|
<field name="glAccountId">
|
|
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
|
|
<parameter param-name="glAccountId"/>
|
|
<parameter param-name="organizationPartyId"/>
|
|
</hyperlink>
|
|
</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">
|
|
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
|
|
<parameter param-name="glAccountId"/>
|
|
<parameter param-name="organizationPartyId"/>
|
|
</hyperlink>
|
|
</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">
|
|
<hyperlink target="FindAcctgTransEntries" description="[${glAccountId}] [${glAccount.accountCode}] ${glAccount.accountName}">
|
|
<parameter param-name="glAccountId"/>
|
|
<parameter param-name="organizationPartyId"/>
|
|
</hyperlink>
|
|
</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> |