applications/accounting/widget/contracts/AgreementForms.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="FindAgreements" target="FindAgreement" title="" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementId" title="${uiLabelMap.CommonId}"><text-find/></field>
<field name="agreementTypeId" title="${uiLabelMap.CommonType}" position="2">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="AgreementType"/>
</drop-down>
</field>
<field name="agreementName" title="${uiLabelMap.CommonName}"><text-find/></field>
<field name="description" title="${uiLabelMap.CommonDescription}" position="2"><text-find/></field>
<field name="partyIdFrom" title="${uiLabelMap.CommonParty} ${uiLabelMap.CommonFrom}">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="partyIdTo" title="${uiLabelMap.CommonParty} ${uiLabelMap.CommonTo}" position="2">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="roleTypeIdFrom" title="${uiLabelMap.CommonRole} ${uiLabelMap.CommonFrom}">
<drop-down allow-empty="true">
<entity-options entity-name="RoleType" description="${description}" key-field-name="roleTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="roleTypeIdTo" title="${uiLabelMap.CommonRole} ${uiLabelMap.CommonTo}" position="2">
<drop-down allow-empty="true">
<entity-options entity-name="RoleType" description="${description}" key-field-name="roleTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="agreementDate" title="${uiLabelMap.AccountingAgreementDate}"><hidden/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}"><date-find type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-find type="date"/></field>
<field name="productId" title="${uiLabelMap.AccountingProduct}">
<lookup target-form-name="LookupProduct"/>
</field>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreements" list-name="listIt" target="" title="" type="list" paginate-target="FindAgreement"
odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<actions>
<set field="entityName" value="Agreement"/>
<service service-name="performFind" result-map="result" result-map-list="listIt">
<field-map field-name="inputFields" from-field="requestParameters"/>
<field-map field-name="entityName" from-field="entityName"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<row-actions>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/agreement/GetPartyNameForDate.groovy"/>
</row-actions>
<field name="agreementId" title="${uiLabelMap.CommonId}" widget-style="${styles.link_nav_info_id}" sort-field="true">
<hyperlink also-hidden="false" description="${agreementId}" target="EditAgreement">
<parameter param-name="agreementId"/>
</hyperlink>
</field>
<field name="agreementTypeId" title="${uiLabelMap.CommonType}" sort-field="true">
<display-entity entity-name="AgreementType"/>
</field>
<field name="partyIdFrom" title="${uiLabelMap.CommonFrom} ${uiLabelMap.CommonParty}" sort-field="true" widget-style="${styles.link_nav_info_name} ${styles.action_view}">
<hyperlink target="/partymgr/control/viewprofile" description="${partyNameResultFrom.fullName}" target-type="inter-app">
<parameter param-name="partyId" from-field="partyIdFrom"/>
</hyperlink>
</field>
<field name="partyIdTo" title="${uiLabelMap.CommonTo} ${uiLabelMap.CommonParty}" sort-field="true" widget-style="${styles.link_nav_info_name} ${styles.action_view}">
<hyperlink target="/partymgr/control/viewprofile" description="${partyNameResultTo.fullName}" target-type="inter-app">
<parameter param-name="partyId" from-field="partyIdTo"/>
</hyperlink>
</field>
<field name="roleTypeIdFrom" title="${uiLabelMap.CommonFrom} ${uiLabelMap.CommonRole} "><hidden/></field>
<field name="roleTypeIdTo" title="${uiLabelMap.CommonTo} ${uiLabelMap.CommonRole}" sort-field="true">
<display-entity entity-name="RoleType" key-field-name="roleTypeId"/>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" sort-field="true"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" sort-field="true"><display type="date"/></field>
<field name="agreementDate" title="${uiLabelMap.AccountingAgreementDate}"><hidden/></field>
<field name="productId" title="${uiLabelMap.AccountingProduct}" sort-field="true">
<display-entity entity-name="Product" description="${internalName}"/>
</field>
<field name="textData" title="${uiLabelMap.AccountingTextData}"><hidden/></field>
<field name="description" sort-field="true"><display/></field>
<field name="cancelAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_terminate}">
<hyperlink target="cancelAgreement" description="${uiLabelMap.CommonExpire}" also-hidden="false">
<parameter param-name="agreementId"/>
</hyperlink>
</field>
</form>
<form name="EditAgreement" type="single" target="updateAgreement" title="" default-map-name="agreement"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreement==null" target="createAgreement"/>
<auto-fields-service service-name="updateAgreement" default-field-type="edit" map-name="agreement"/>
<field name="agreementId" use-when="agreementId!=null"><display/></field>
<field name="agreementId" use-when="agreement==null&&agreementId==null"><ignored/></field>
<field name="productId" title="${uiLabelMap.AccountingProductId}">
<lookup target-form-name="LookupProduct"/>
</field>
<field name="agreementTypeId" title="${uiLabelMap.CommonType}" required-field="true">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="AgreementType" key-field-name="agreementTypeId"/>
</drop-down>
</field>
<field name="agreementDate" position="2" required-field="true"><date-time type="date"/></field>
<field name="partyIdFrom" title="${uiLabelMap.AccountingPartyIdFrom}" required-field="true">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="partyIdTo" title="${uiLabelMap.AccountingPartyIdTo}" position="2" required-field="true">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="roleTypeIdFrom" title="${uiLabelMap.AccountingRoleTypeIdFrom}">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/>
</drop-down>
</field>
<field name="roleTypeIdTo" title="${uiLabelMap.AccountingRoleTypeIdTo}" position="2">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/>
</drop-down>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItems" list-name="agreementItems" target="" title="" type="list" paginate-target="ListAgreementItems"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<auto-fields-entity entity-name="AgreementItem" default-field-type="display"/>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.CommonItem} ${uiLabelMap.ProductSeqId}"
widget-style="${styles.link_nav_info_id}" widget-area-style="align-right" title-area-style="align-right">
<hyperlink also-hidden="false" description="${agreementItemSeqId}" target="EditAgreementItem">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
<field name="agreementItemTypeId" title="${uiLabelMap.CommonType}">
<display-entity entity-name="AgreementItemType"/>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItem" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="agreementId"/>
</hyperlink>
</field>
</form>
<form name="EditAgreementItem" type="single" target="updateAgreementItem" title="" default-map-name="agreementItem"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementItem==null" target="createAgreementItem"/>
<auto-fields-entity entity-name="AgreementItem" default-field-type="edit"/>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" use-when="agreementItem!=null" title="${uiLabelMap.AccountingAgreementItemSeqId}"><display/></field>
<field name="agreementItemSeqId" use-when="agreementItem==null" ><ignored/></field>
<field name="agreementItemTypeId" title="${uiLabelMap.CommonType}">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="AgreementItemType" key-field-name="agreementItemTypeId"/>
</drop-down>
</field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}" position="2">
<drop-down allow-empty="true" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
<entity-options key-field-name="uomId" description="${uomId} - ${description}" 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="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementTerms" target="updateAgreementTerm" list-name="agreementTerms" paginate-target="EditAgreementTerms" title="" type="list"
odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<actions>
<entity-and entity-name="AgreementTerm" list="agreementTerms">
<field-map field-name="agreementId" from-field="agreementId"/>
<order-by field-name="agreementItemSeqId"/>
<order-by field-name="agreementTermId"/>
</entity-and>
</actions>
<!--
<auto-fields-service service-name="updateAgreementTerm"/>
-->
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementTermId" ><display/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><display/></field>
<field name="termTypeId" title="${uiLabelMap.CommonType}">
<display-entity entity-name="TermType"/>
</field>
<field name="invoiceItemTypeId" title="${uiLabelMap.AccountingInvoice} ${uiLabelMap.CommonType}">
<display-entity entity-name="InvoiceItemType" description="${description}"/>
</field>
<field name="minQuantity" title="${uiLabelMap.Qty}" widget-area-style="amount" title-area-style="align-right"><display/></field>
<field name="maxQuantity" title=" " widget-area-style="amount" title-area-style="align-right"><display/></field>
<field name="termValue" title="${uiLabelMap.CommonValue}" widget-area-style="amount" title-area-style="align-right"><display/></field>
<field name="termDays" title="${uiLabelMap.CommonDays}" widget-area-style="amount" title-area-style="align-right"><display/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><display type="date"/></field>
<field name="textValue"><display/></field>
<field name="description"><display/></field>
<field name="editAction" title=" " widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink target="EditAgreementItemTerm" description="${uiLabelMap.CommonEdit}" also-hidden="false">
<parameter param-name="agreementTermId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="agreementId"/>
</hyperlink>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="deleteAgreementTerm" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="agreementTermId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="agreementId"/>
</hyperlink>
</field>
</form>
<form name="AddAgreementTerm" type="single" target="createAgreementTerm" title="" default-map-name="agreementTerm"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementTermId" title="${uiLabelMap.AccountingAgreementTermId}"><hidden/></field>
<field name="termTypeId" title="${uiLabelMap.CommonType}">
<drop-down allow-empty="false">
<entity-options entity-name="TermType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="invoiceItemTypeId" title="${uiLabelMap.AccountingInvoice} ${uiLabelMap.CommonType}" position="2" >
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceItemType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
<field name="minQuantity"><text/></field>
<field name="maxQuantity" position="2"><text/></field>
<field name="termDays"><text/></field>
<field name="termValue" position="2"><text/></field>
<field name="textValue"><text/></field>
<field name="description"><textarea cols="6"/></field>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_add}">
<submit button-type="button"/>
</field>
</form>
<form name="EditAgreementGeographicalApplic" type="single" target="updateAgreementGeographicalApplic" title="" default-map-name="agreementGeographicalApplic"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementGeographicalApplic==null" target="createAgreementGeographicalApplic"/>
<auto-fields-entity entity-name="AgreementGeographicalApplic" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="geoId" use-when="agreementGeographicalApplic==null" required-field="true">
<!-- SCIPIO: too many entries in system
<drop-down allow-empty="false">
<entity-options entity-name="Geo" description="${geoName} [${geoId}]">
<entity-order-by field-name="geoName"/>
</entity-options>
</drop-down>-->
<lookup target-form-name="LookupGeo"/>
</field>
<field name="geoId" use-when="agreementGeographicalApplic!=null"><display/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementGeographicalApplic" target="" title="" type="list" list-name="agreementGeographicalApplics" paginate-target="ListAgreementGeographicalApplic"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<auto-fields-entity entity-name="AgreementGeographicalApplic" default-field-type="display"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="geoId" title="${uiLabelMap.CommonDescription}">
<display-entity entity-name="Geo" key-field-name="geoId" description="${geoName} [${geoId}]"/>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementGeographicalApplic" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="geoId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
</form>
<form name="EditAgreementItemFacility" type="single" target="updateAgreementItemFacility" title="" default-map-name="agreementFacilityAppl"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementFacilityAppl==null" target="createAgreementItemFacility"/>
<auto-fields-entity entity-name="AgreementFacilityAppl" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="facilityId" use-when="agreementFacilityAppl==null">
<lookup target-form-name="LookupFacility"/>
</field>
<field name="facilityId" use-when="agreementFacilityAppl!=null"><display/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItemFacilities" list-name="agreementFacilities" target="" title="" type="list" paginate-target="ListAgreementItemFacilities"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="Facility" value-field="facility"></entity-one>
</row-actions>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="facilityId" title="${uiLabelMap.Facility}" widget-style="${styles.link_nav_info_idname}">
<hyperlink also-hidden="false" description="${facilityId} - ${facility.facilityName}" target="EditAgreementItemFacility">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="facilityId"/>
</hyperlink>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItemFacility" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="facilityId"/>
</hyperlink>
</field>
</form>
<form name="ViewAgreementInfoForReport" type="single" title="" default-map-name="agreement"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementId"><text/></field>
<field name="partyIdFrom"><text/></field>
<field name="partyIdTo">
<display-entity entity-name="PartyGroup" key-field-name="partyId" description="${partyId} - ${groupName}"/>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.AccountingThruDate}" position="2"><display type="date"/></field>
<field name="description"><display/></field>
</form>
<form name="ViewAgreementItemInfoForReport" type="single" title="" default-map-name="agreementItem"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementItemSeqId"><display/></field>
<field name="currencyUomId"><display/></field>
</form>
<form name="EditAgreementItemParty" type="single" target="updateAgreementItemParty" title="" default-map-name="agreementPartyApplic"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementPartyApplic==null" target="createAgreementItemParty"/>
<auto-fields-entity entity-name="AgreementPartyApplic" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="partyId" use-when="agreementPartyApplic==null">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="partyId" use-when="agreementPartyApplic!=null"><display/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItemParties" list-name="agreementParties" target="" title="" type="list" paginate-target="ListAgreementItemParties"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="PartyNameView" value-field="party"/>
</row-actions>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="partyId" title="${uiLabelMap.CommonParty}" widget-style="${styles.link_nav_info_idname_long}">
<hyperlink also-hidden="false" description="${partyId} - ${party.groupName} ${party.firstName} ${party.lastName}" target="EditAgreementItemParty">
<parameter param-name="partyId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItemParty" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="partyId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
</form>
<form name="EditAgreementItemProduct" type="single" target="updateAgreementItemProduct" title="" default-map-name="agreementProductAppl"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementProductAppl==null" target="createAgreementItemProduct"/>
<auto-fields-entity entity-name="AgreementProductAppl" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="productId" title="${uiLabelMap.AccountingProduct}" use-when="agreementProductAppl==null">
<lookup target-form-name="LookupProduct"/>
</field>
<field name="productId" title="${uiLabelMap.AccountingProduct}" use-when="agreementProductAppl!=null"><display/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItemProducts" list-name="agreementProducts" target="" title="" type="list" paginate-target="ListAgreementItemProducts"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="Product" value-field="product"/>
</row-actions>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="productId" title="${uiLabelMap.AccountingProduct}">
<display-entity entity-name="Product" description=" ">
<sub-hyperlink target="EditAgreementItemProduct" description="${productId} - ${product.internalName}" link-style="${styles.link_nav_info_idname}">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="productId"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="price" widget-area-style="amount" title-area-style="align-right"><display type="currency" currency="${agreementItem.currencyUomId}"/></field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItemProduct" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="productId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
</form>
<form name="ListAgreementItemProductsForReport" list-name="agreementProducts" target="" title="" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="productId" title-area-style="tableheadmedium"><display/></field>
<field name="internalName" entry-name="productId">
<display-entity entity-name="Product" key-field-name="productId" description="${internalName}"/>
</field>
<field name="price" widget-area-style="amount" title-area-style="tableheadmedium"><display type="currency" currency="${agreementItem.currencyUomId}"/></field>
</form>
<form name="EditAgreementPromoAppl" type="single" target="updateAgreementPromoAppl" title="" default-map-name="agreementPromoAppl"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementPromoAppl==null" target="createAgreementPromoAppl"/>
<auto-fields-entity entity-name="AgreementPromoAppl" default-field-type="edit"/>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field use-when="agreementPromoAppl!=null" name="productPromoId" title="${uiLabelMap.FormFieldTitle_productPromoId}">
<display-entity entity-name="ProductPromo" key-field-name="productPromoId" description="${promoName}"/>
</field>
<field name="productPromoId" use-when="agreementPromoAppl==null">
<drop-down allow-empty="true">
<entity-options description="${promoName}" entity-name="ProductPromo" key-field-name="productPromoId"/>
</drop-down>
</field>
<field name="fromDate"><date-time type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
<field name="sequenceNum" position-span="1"><text/></field>
<field use-when="agreementPromoAppl!=null" name="fromDate"><display/></field>
<field use-when="agreementPromoAppl==null" name="fromDate"><date-time/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementPromoAppls" list-name="agreementPromoAppls" target="" title="" type="list" paginate-target="ListAgreementPromoAppls"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<row-actions>
<entity-one entity-name="ProductPromo" value-field="productPromo"></entity-one>
</row-actions>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="productPromoId" title="${uiLabelMap.ProductPromotion}" widget-style="${styles.link_nav_info_idname}">
<hyperlink also-hidden="false" description="${productPromoId} - ${productPromo.promoName}" target="EditAgreementPromoAppl">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="productPromoId"/>
<parameter param-name="fromDate"/>
</hyperlink>
</field>
<field name="sequenceNum"><display/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><display type="date"/></field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementPromoAppl" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="productPromoId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="fromDate"/>
</hyperlink>
</field>
</form>
<form name="EditAgreementItemSupplierProduct" type="single" target="updateAgreementItemSupplierProduct" title="" default-map-name="agreementProductAppl"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementProductAppl==null" target="createAgreementItemSupplierProduct"/>
<auto-fields-entity entity-name="SupplierProduct" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="partyId"><hidden value="${agreement.partyIdTo}"/></field>
<field name="currencyUomId"><hidden value="${agreementItem.currencyUomId}"/></field>
<field name="availableFromDate" title="${uiLabelMap.CommonFrom}" use-when="agreementProductAppl==null">
<!--<date-time default-value="${groovy: org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>-->
<date-time default-value="${agreement.fromDate}"/>
</field>
<field name="availableFromDate" title="${uiLabelMap.CommonFrom}" use-when="agreementProductAppl!=null">
<display/>
</field>
<field name="minimumOrderQuantity" use-when="agreementProductAppl==null">
<text default-value="0" size="5"/>
</field>
<field name="minimumOrderQuantity" use-when="agreementProductAppl!=null">
<display/>
</field>
<field name="productId" use-when="agreementProductAppl==null">
<lookup target-form-name="LookupProduct"/>
</field>
<field name="productId" use-when="agreementProductAppl!=null"><display/></field>
<field name="supplierPrefOrderId">
<drop-down allow-empty="true">
<entity-options entity-name="SupplierPrefOrder" key-field-name="supplierPrefOrderId" description="${description}">
<entity-order-by field-name="supplierPrefOrderId"/>
</entity-options>
</drop-down>
</field>
<field name="supplierRatingTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="SupplierRatingType" key-field-name="supplierRatingTypeId" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="quantityUomId" title="${uiLabelMap.ProductQuantityUomId}">
<drop-down allow-empty="true">
<entity-options entity-name="UomAndType" key-field-name="uomId" description="${typeDescription}: ${description} (${abbreviation})">
<entity-constraint name="uomTypeId" operator="not-equals" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="typeDescription"/>
<entity-order-by field-name="uomId"/>
</entity-options>
</drop-down>
</field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItemSupplierProducts" list-name="agreementProducts" target="" title="" type="list" paginate-target="ListAgreementItemSupplierProducts"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<auto-fields-entity entity-name="SupplierProduct" default-field-type="display"/>
<field name="agreementId"><hidden/></field>
<field name="agreementItemSeqId"><hidden/></field>
<field name="partyId"><hidden/></field>
<field name="currencyUomId"><hidden/></field>
<field name="productId" title="${uiLabelMap.AccountingProduct}" widget-style="${styles.link_nav_info_id}">
<hyperlink also-hidden="false" description="${productId}" target="EditAgreementItemSupplierProduct">
<parameter param-name="minimumOrderQuantity"/>
<parameter param-name="currencyUomId"/>
<parameter param-name="availableFromDate"/>
<parameter param-name="partyId"/>
<parameter param-name="productId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
<field name="internalName" entry-name="productId">
<display-entity entity-name="Product" key-field-name="productId" description="${internalName}"/>
</field>
<field name="lastPrice" widget-area-style="amount" title-area-style="align-right"><display type="currency" currency="${agreementItem.currencyUomId}"/></field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItemSupplierProduct" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="minimumOrderQuantity"/>
<parameter param-name="currencyUomId"/>
<parameter param-name="availableFromDate"/>
<parameter param-name="partyId"/>
<parameter param-name="productId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
</form>
<form name="ListAgreementItemSupplierProductsForReport" list-name="agreementProducts" target="" title="" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="productId" title-area-style="tableheadmedium"><display/></field>
<field name="supplierProductId" title-area-style="tableheadmedium"><display/></field>
<field name="internalName" entry-name="productId">
<display-entity entity-name="Product" key-field-name="productId" description="${internalName}"/>
</field>
<field name="lastPrice" widget-area-style="amount" title-area-style="tableheadmedium"><display type="currency" currency="${agreementItem.currencyUomId}"/></field>
</form>
<form name="EditAgreementItemTerm" type="single" target="updateAgreementItemTerm" title="" default-map-name="agreementTerm"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target use-when="agreementTerm==null" target="createAgreementItemTerm"/>
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><display/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}" position="2"><display/></field>
<field name="agreementTermId" title="${uiLabelMap.AccountingAgreementTermId}"><display/></field>
<field name="termTypeId" title="${uiLabelMap.CommonType}">
<drop-down allow-empty="false">
<entity-options entity-name="TermType" description="${description}"/>
</drop-down>
</field>
<field name="invoiceItemTypeId" title="${uiLabelMap.AccountingInvoice} ${uiLabelMap.CommonType}" position="2">
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceItemType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time type="date"/></field>
<field name="minQuantity"><text/></field>
<field name="maxQuantity" position="2"><text/></field>
<field name="termDays"><text/></field>
<field name="termValue" position="2"><text/></field>
<field name="textValue"><text/></field>
<field name="description"><textarea cols="5"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
<submit button-type="button"/>
</field>
</form>
<form name="ListAgreementItemTerms" target="" title="" type="list" list-name="agreementTerms" paginate-target="ListAgreementItemTerms"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><hidden/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><hidden/></field>
<field name="agreementTermId" title=" " widget-style="${styles.link_nav_info_id}">
<hyperlink also-hidden="false" description="${agreementTermId}" target="EditAgreementItemTerm">
<parameter param-name="agreementTermId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
<field name="termTypeId" title="${uiLabelMap.CommonType}">
<display-entity entity-name="TermType"/>
</field>
<field name="invoiceItemTypeId" title="${uiLabelMap.AccountingInvoice} ${uiLabelMap.CommonType}">
<display-entity entity-name="InvoiceItemType"/>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeAgreementItemTerm" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="agreementTermId"/>
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
</hyperlink>
</field>
</form>
<!-- Agreement WorkEffort Applic-->
<form name="AddAgreementWorkEffortApplic" target="createAgreementWorkEffortApplic" title="" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementId"><hidden value="${agreementId}"/></field>
<field name="agreementItemSeqId" title="${uiLabelMap.CommonItem} ${uiLabelMap.ProductSeqId}">
<drop-down allow-empty="false">
<option key="_NA_" description="${uiLabelMap.CommonNA}"/>
<entity-options entity-name="AgreementItem" description="${agreementItemSeqId}">
<entity-constraint name="agreementId" operator="equals" env-name="agreementId"/>
<entity-order-by field-name="agreementItemSeqId"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortId" title="${uiLabelMap.WorkEffort}" position="2">
<lookup target-form-name="LookupWorkEffort"/>
</field>
<field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="ListAgreementWorkEffortApplics" type="list" target="updateAgreementWorkEffortApplic" list-name="agreementWorkEffortApplics"
odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<actions>
<entity-and entity-name="AgreementWorkEffortApplic" use-cache="true" list="agreementWorkEffortApplics">
<field-map field-name="agreementId" from-field="agreementId"/>
</entity-and>
</actions>
<row-actions>
<entity-one entity-name="WorkEffort" value-field="workEffort">
<field-map field-name="workEffortId"/>
</entity-one>
<set field="statusId" from-field="workEffort.currentStatusId"/>
<set field="workEffortTypeId" from-field="workEffort.workEffortTypeId"/>
</row-actions>
<field name="agreementItemSeqId" title="${uiLabelMap.CommonItem} ${uiLabelMap.ProductSeqId}"><display/></field>
<field name="workEffortId" title="${uiLabelMap.WorkEffort}">
<display-entity entity-name="WorkEffort" description="${workEffortName}"></display-entity>
</field>
<field name="workEffortTypeId" title="${uiLabelMap.CommonType}">
<display-entity entity-name="WorkEffortType" description="${description}"/>
</field>
<field name="statusId" title="${uiLabelMap.CommonStatus}">
<display-entity entity-name="StatusItem" description="${description}"/>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteAgreementWorkEffortApplic">
<parameter param-name="agreementId"/>
<parameter param-name="agreementItemSeqId"/>
<parameter param-name="workEffortId"/>
</hyperlink>
</field>
</form>
<form name="ListAgreementRoles" list-name="agreementRoles" type="list" paginate-target="EditAgreementRoles"
odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<actions>
<entity-and entity-name="AgreementRole" use-cache="true" list="agreementRoles">
<field-map field-name="agreementId" from-field="agreementId"/>
</entity-and>
</actions>
<auto-fields-entity entity-name="AgreementRole" default-field-type="display"/>
<field name="agreementId"><hidden/></field>
<field name="partyId" title="${uiLabelMap.CommonParty}">
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${firstName} ${lastName}"/>
</field>
<field name="roleTypeId" title="${uiLabelMap.CommonRole}">
<display-entity entity-name="RoleType" description="${description}"/>
</field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="deleteAgreementRole" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="agreementId"/>
<parameter param-name="partyId"/>
<parameter param-name="roleTypeId"/>
</hyperlink>
</field>
</form>
<form name="AddAgreementRole" type="single" target="createAgreementRole"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<auto-fields-entity entity-name="AgreementRole" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
<field name="partyId" title="${uiLabelMap.CommonParty}"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId" title="${uiLabelMap.CommonRole}">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="CopyAgreement" type="single" target="copyAgreement"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="agreementId"><hidden/></field>
<field name="copyAgreementTerms" title="${uiLabelMap.AccountingAgreementTerms}">
<check no-current-selected-key="Y">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
</check>
</field>
<field name="copyAgreementProducts" title="${uiLabelMap.ProductProducts}" position="2">
<check no-current-selected-key="Y">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
</check>
</field>
<field name="copyAgreementParties" title="${uiLabelMap.Party}">
<check no-current-selected-key="Y">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
</check>
</field>
<field name="copyAgreementFacilities" title="${uiLabelMap.ProductFacilities}" position="2">
<check no-current-selected-key="Y">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
</check>
</field>
<field name="submitAction" title="${uiLabelMap.CommonCopy}" widget-style="${styles.link_run_sys} ${styles.action_copy}"><submit button-type="button"/></field>
</form>
</forms>