Hi,
I think there is a bug in the definition of the
"createInvoiceForOrderAllItems" service .
Here is the current definition :
<service name="createInvoiceForOrderAllItems" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices"
invoke="createInvoiceForOrderAllItems">
<description>
Create an invoice from existing order using all order items
orderId = The orderId to associate the invoice with
</description>
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="invoiceId" type="String" mode="OUT" optional="true"/>
</service>
But in the service method, there is this :
Map resp = ServiceUtil.returnSuccess();
resp.put("invoiceId", invoiceId);
resp.put("invoiceTypeId", invoiceType);
return resp;
And so it generates the following error :
(OUT) Required test error:
org.ofbiz.service.ServiceValidationException: Unknown parameter found:
[createInvoiceForOrderAllItems.invoiceTypeId]
Version : ofbiz-rel9.04-2009-09-25-v818777
Cimballi