Bug in createInvoiceForOrderAllItems service definition
------------------------------------------------------- Key: OFBIZ-3010 URL: https://issues.apache.org/jira/browse/OFBIZ-3010 Project: OFBiz Issue Type: Bug Components: accounting Affects Versions: Release Branch 9.04 Environment: Tested on version : ofbiz-rel9.04-2009-09-25-v818777 Reporter: Cimballi 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] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bilgin Ibryam reassigned OFBIZ-3010: ------------------------------------ Assignee: Bilgin Ibryam > Bug in createInvoiceForOrderAllItems service definition > ------------------------------------------------------- > > Key: OFBIZ-3010 > URL: https://issues.apache.org/jira/browse/OFBIZ-3010 > Project: OFBiz > Issue Type: Bug > Components: accounting > Affects Versions: Release Branch 9.04 > Environment: Tested on version : ofbiz-rel9.04-2009-09-25-v818777 > Reporter: Cimballi > Assignee: Bilgin Ibryam > > 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] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bilgin Ibryam closed OFBIZ-3010. -------------------------------- Resolution: Fixed Fix Version/s: Release Branch 9.04 Release Branch 4.0 Thanks Cimballi. The bug is fixed in trunk and 9.4 with r830814 and r830818 > Bug in createInvoiceForOrderAllItems service definition > ------------------------------------------------------- > > Key: OFBIZ-3010 > URL: https://issues.apache.org/jira/browse/OFBIZ-3010 > Project: OFBiz > Issue Type: Bug > Components: accounting > Affects Versions: Release Branch 9.04 > Environment: Tested on version : ofbiz-rel9.04-2009-09-25-v818777 > Reporter: Cimballi > Assignee: Bilgin Ibryam > Fix For: Release Branch 4.0, Release Branch 9.04 > > > 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] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |