Author: ashish
Date: Fri Jul 10 11:59:26 2009
New Revision: 792900
URL:
http://svn.apache.org/viewvc?rev=792900&view=revLog:
Now performFind service is used in the form action instead of preparing invoice list in groovy file.
Thanks Awdesh.
Removed:
ofbiz/trunk/applications/accounting/webapp/ap/WEB-INF/actions/invoices/FindApInvoices.groovy
Modified:
ofbiz/trunk/applications/accounting/widget/ap/InvoiceScreens.xml
ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml
Modified: ofbiz/trunk/applications/accounting/widget/ap/InvoiceScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/ap/InvoiceScreens.xml?rev=792900&r1=792899&r2=792900&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/ap/InvoiceScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/ap/InvoiceScreens.xml Fri Jul 10 11:59:26 2009
@@ -47,7 +47,12 @@
<set field="titleProperty" value="AccountingFindApInvoices"/>
<set field="tabButtonItem" value="viewInvoices"/>
<set field="parameters.sortField" from-field="parameters.sortField" default-value="-invoiceDate"/>
- <script location="component://accounting/webapp/ap/WEB-INF/actions/invoices/FindApInvoices.groovy"/>
+ <service service-name="performFind" result-map="invoiceMap">
+ <field-map field-name="inputFields" from-field="parameters"/>
+ <field-map field-name="entityName" value="InvoiceAndType"/>
+ <field-map field-name="orderBy" from-field="parameters.sortField"/>
+ </service>
+ <set field="invoices" from-field="invoiceMap.listIt"/>
</actions>
<widgets>
<decorator-screen name="CommonApInvoiceDecorator" location="${parameters.CommonApInvoiceDecoratorLocation}">
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=792900&r1=792899&r2=792900&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/ap/forms/InvoiceForms.xml Fri Jul 10 11:59:26 2009
@@ -68,6 +68,7 @@
</form>
<form name="FindApInvoices" type="single" target="FindApInvoices" extends="FindInvoices" extends-resource="component://accounting/webapp/accounting/invoice/InvoiceForms.xml">
+ <field name="parentTypeId"><hidden value="PURCHASE_INVOICE"/></field>
<field position="1" name="invoiceTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceType" description="${description}">