Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Release Branch 09.04
-
None
-
Tested on version : ofbiz-rel9.04-2009-09-25-v818777
Description
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]