Author: apatel
Date: Thu Aug 6 09:27:40 2009
New Revision: 801562
URL:
http://svn.apache.org/viewvc?rev=801562&view=revLog:
Add dropdown for list of invoice type that have root as PURCHASE_INVOICE. Patch from OFBIZ-2801. Thanks Sumit and Surya.
Modified:
ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml
Modified: ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml?rev=801562&r1=801561&r2=801562&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml Thu Aug 6 09:27:40 2009
@@ -134,11 +134,17 @@
</drop-down>
</field>
<field name="organizationPartyId"><hidden/></field>
- <field name="invoiceTypeId"><hidden value="PURCHASE_INVOICE"/></field>
<field name="fromInvoiceDate" position="1"><date-time/></field>
<field name="thruInvoiceDate" position="2"><date-time/></field>
<field name="fromDueDate" position="1"><date-time/></field>
<field name="thruDueDate" position="2"><date-time/></field>
+ <field name="invoiceTypeId" position="1">
+ <drop-down allow-empty="false">
+ <entity-options entity-name="InvoiceType" description="${description}">
+ <entity-constraint name="parentTypeId" value="PURCHASE_INVOICE"/>
+ </entity-options>
+ </drop-down>
+ </field>
<field name="search" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>