Author: apatel
Date: Thu Dec 20 22:58:20 2007
New Revision: 606118
URL:
http://svn.apache.org/viewvc?rev=606118&view=revLog:
added more relevant party roleTypeId at top of list in the dropdown for roleTypeId field in editInvoice header form.
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
Modified: ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml?rev=606118&r1=606117&r2=606118&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml Thu Dec 20 22:58:20 2007
@@ -242,8 +242,23 @@
<field position="1" name="partyIdFrom" use-when="invoiceType.getString("parentTypeId").equals("PURCHASE_INVOICE")"><lookup target-form-name="LookupPartyName"/></field>
<field position="1" name="partyIdTo" entry-name="partyId" parameter-name="partyId" use-when="invoiceType.getString("parentTypeId").equals("PURCHASE_INVOICE")"><display description="${invoice.partyId}"/></field>
<field position="1" name="partyIdTo" entry-name="partyId" parameter-name="partyId" use-when="invoiceType.getString("parentTypeId").equals("SALES_INVOICE")"><lookup target-form-name="LookupPartyName"/></field>
- <field position="1" name="roleTypeId">
+ <field position="1" name="roleTypeId" use-when="invoice!=null&&invoice.getString("invoiceTypeId").equals("SALES_INVOICE")">
<drop-down allow-empty="true">
+ <entity-options description="${description}" entity-name="RoleType">
+ <entity-constraint name="parentTypeId" operator="equals" value="CUSTOMER"/>
+ <entity-order-by field-name="description"/>
+ </entity-options>
+ <entity-options description="${description}" entity-name="RoleType">
+ <entity-order-by field-name="description"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ <field position="1" name="roleTypeId" use-when="invoice!=null&&invoice.getString("invoiceTypeId").equals("PURCHASE_INVOICE")">
+ <drop-down allow-empty="true">
+ <entity-options description="${description}" entity-name="RoleType">
+ <entity-constraint name="parentTypeId" operator="equals" value="VENDOR"/>
+ <entity-order-by field-name="description"/>
+ </entity-options>
<entity-options description="${description}" entity-name="RoleType">
<entity-order-by field-name="description"/>
</entity-options>