Improved: FindArInvoices request needs performance improvement regarding use of
EntityListIterator::hasNext method
FindAPInvoices request  does not suffer from this issue nor findInvoice request.
This was due to <screen name="FindArInvoices"> definition
Using something similar than <screen name="FindApInvoices"> fixes the issue
@@ -63,12 +63,7 @@ under the License.
<section>
<actions>
<set field="titleProperty" value="AccountingFindArInvoices"/>
- <service service-name="performFind" result-map="result">
- <field-map field-name="inputFields" from-field="parameters"/>
- <field-map field-name="entityName" value="InvoiceAndType"/>
- <field-map field-name="orderBy" value="invoiceDate DESC"/>
- </service>
- <set field="invoices" from-field="result.listIt"/>
+ <set field="tabButtonItem" value="viewInvoices"/>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
@@ -85,9 +80,7 @@ under the License.
<include-form name="FindArInvoices" location="component://accounting/widget/ar/forms/InvoiceForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
- <platform-specific>
- <html><html-template location="component://accounting/template/ar/invoice/ListInvoices.ftl"/></html>
- </platform-specific>
+ <include-form name="ListInvoices" location="component://accounting/widget/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
