applications/accounting/widget/controlling/CostForms.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="ListCostComponentCalc" type="list" list-name="allCostComponentCalcs" use-row-submit="true" target="updateCostComponentCalc"
odd-row-style="alternate-row" header-row-style="header-row-2" paginate-target="EditCostCalcs"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<auto-fields-entity entity-name="CostComponentCalc" default-field-type="display"/>
<field name="costComponentCalcId" widget-style="${styles.link_nav_info_id}"></field>
<field name="costGlAccountTypeId" title="${uiLabelMap.CommonType}">
<drop-down allow-empty="false">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
</drop-down>
</field>
<field name="offsettingGlAccountTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
</drop-down>
</field>
<field name="updateCostComponentCalc" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
<field name="costCustomMethodId" title="${uiLabelMap.CommonMethod}"><display-entity entity-name="CustomMethod" key-field-name="customMethodId" description="${description}"/></field>
<field name="deleteCostComponentCalc" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="deleteCostComponentCalc" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="costComponentCalcId"/>
</hyperlink>
</field>
</form>
<form name="AddCostComponentCalc" type="single" target="createCostComponentCalc"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<auto-fields-service service-name="createCostComponentCalc"/>
<field name="costGlAccountTypeId" title="${uiLabelMap.CommonType}">
<drop-down allow-empty="false">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
</drop-down>
</field>
<field name="offsettingGlAccountTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
</drop-down>
</field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
<drop-down allow-empty="false" 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>
<field name="costCustomMethodId" title="${uiLabelMap.CommonMethod}">
<drop-down allow-empty="true">
<entity-options entity-name="CustomMethod" key-field-name="customMethodId" description="${description}">
<entity-constraint name="customMethodTypeId" operator="equals" value="COST_FORMULA"/>
</entity-options>
</drop-down>
</field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_add}">
<submit button-type="button"/>
</field>
</form>
</forms>