Files
ofbiz-framework/applications/accounting/widget/BillingAccountForms.xml
T
Jacopo Cappellato 108d57b21c First version of the billing accounts' process refactoring effort: now most of the more critical bugs that were affecting the billing accounts are fixed (OFBIZ-901). There is still some work to do to consolidate and cleanup older code, and an issue with approximations under certain conditions (that is my next task).
The most remarkable difference from the existing code (that was an incomplete implementation of the processes needed to effectively use billing accounts) is that now payment applications are *not* applied to a billing account; they are simply associated to it and can be applied to pay the invoices associated to the billing account.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@543923 13f79535-47bb-0310-9956-ffa450edef68
2007-06-03 16:06:37 +00:00

103 lines
6.1 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="EditBillingAccount" type="single" target="updateBillingAccount" title="" default-map-name="billingAccount">
<alt-target use-when="billingAccount==null" target="createBillingAccount"/>
<auto-fields-service service-name="updateBillingAccount" map-name="billingAccount"/>
<field name="description"><text size="60"/></field>
<field use-when="billingAccount!=null" name="billingAccountId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
<field name="accountCurrencyUomId">
<drop-down allow-empty="false" no-current-selected-key="USD">
<entity-options entity-name="Uom" description="[${abbreviation}] ${description}" key-field-name="uomId">
<entity-constraint name="uomTypeId" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="abbreviation"/>
</entity-options>
</drop-down>
</field>
<field name="contactMechId" tooltip="${uiLabelMap.AccountingBillingContactMechIdMessage}">
<drop-down>
<entity-options entity-name="BillingAccountRoleAndAddress" description="[${partyId}][${contactMechId}] ${toName}, ${attnName}, ${address1}, ${stateProvinceGeoId} ${postalCode}" key-field-name="contactMechId" filter-by-date="true">
<entity-constraint name="billingAccountId" env-name="billingAccountId"/>
<entity-order-by field-name="partyId"/>
<entity-order-by field-name="contactMechId"/>
</entity-options>
</drop-down>
</field>
<!--
<field name="netBalance" title="${uiLabelMap.AccountingBillingNetBalance}" tooltip="${uiLabelMap.AccountingBillingNetBalanceMessage}">
<display description="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountNetBalance(delegator, billingAccountId)}" type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
</field>
-->
<field name="availableBalance" title="${uiLabelMap.AccountingBillingAvailableBalance}" tooltip="${uiLabelMap.AccountingBillingAvailableBalanceMessage}">
<display description="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountBalance(billingAccount)}" type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListBillingAccountRoles" type="list" list-name="billingAccountRoleList" target="updateBillingAccountRole">
<actions>
<entity-condition entity-name="BillingAccountRole" list-name="billingAccountRoleList">
<condition-expr field-name="billingAccountId" env-name="billingAccountId"/>
<order-by field-name="roleTypeId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateBillingAccountRole" default-field-type="edit"/>
<field name="billingAccountId"><hidden/></field>
<field name="partyId" title="${uiLabelMap.PartyPartyId}">
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}">
<sub-hyperlink description="${partyId}" target="/partymgr/control/viewprofile?partyId=${partyId}" target-type="inter-app" link-style="buttontext"/>
</display-entity>
</field>
<field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}">
<display-entity entity-name="RoleType" description="${description}"/>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="deleteLink" title="" widget-style="buttontext">
<hyperlink target="deleteBillingAccountRole?billingAccountId=${billingAccountId}&amp;roleTypeId=${roleTypeId}&amp;partyId=${partyId}&amp;fromDate=${fromDate}"
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddBillingAccountRole" type="single" target="createBillingAccountRole" title="" default-map-name="billingAccountRole">
<auto-fields-service service-name="createBillingAccountRole"/>
<field name="billingAccountId"><hidden/></field>
<field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}">
<drop-down allow-empty="false" no-current-selected-key="BILL_TO_CUSTOMER">
<entity-options entity-name="RoleType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPartyName"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
</forms>