Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3010

Bug in createInvoiceForOrderAllItems service definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 09.04
    • accounting
    • 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]

      Attachments

        Activity

          People

            bibryam Bilgin Ismet Ibryam
            cimballi Cimballi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: