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

"View Order" throws exception in getReturnableQuantity

    Details

    • Flags:
      Patch

      Description

      Steps to Reproduce:

      Expected:

      • the order is displayed with status completed

      Actual:

      • A groovy exception is displayed.

      Analysis:
      The service "getReturnableQuantity" throws an exception because it returns the returnablePrice = null, because the unitPrice of the orderItem was null.
      The OUT field returnablePrice is mandatory according to the service-definition. The return parameter is set but the value is null, hence the exception.

      Attached is a patch that will adjust the service-deinition to allow for "null" value of the OUT parameter.

        Activity

        Hide
        leonardlin Leonard Lin added a comment -

        patch is based on 16.11 trunk version.

        Show
        leonardlin Leonard Lin added a comment - patch is based on 16.11 trunk version.
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Hi Leonard,

        About

        - Add 1 orderitem with no unitPrice set (unitPrice = null) for the product

        I know no product with a null price. So you do that programatically, right?

        Show
        jacques.le.roux Jacques Le Roux added a comment - Hi Leonard, About - Add 1 orderitem with no unitPrice set (unitPrice = null) for the product I know no product with a null price. So you do that programatically, right?
        Hide
        leonardlin Leonard Lin added a comment -

        Hi Jacques Le Roux,

        Yes, the order and orderItem is created programmatically.

        I import orders from an external Webshop into OFBiz for fulfillment processing.
        In this project I'm not using OFBiz accounting / pricing, that's why no prices are set.

        Best,
        Leonard

        Show
        leonardlin Leonard Lin added a comment - Hi Jacques Le Roux , Yes, the order and orderItem is created programmatically. I import orders from an external Webshop into OFBiz for fulfillment processing. In this project I'm not using OFBiz accounting / pricing, that's why no prices are set. Best, Leonard
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        OK thanks, makes sense. I'll apply your solution

        Show
        jacques.le.roux Jacques Le Roux added a comment - OK thanks, makes sense. I'll apply your solution
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Leonard,

        Your solution is committed in
        trunk r1779724
        R16.11 r1779725
        R15.12 r1779726
        R14.12 r1779727
        R13.07 r1779728

        Show
        jacques.le.roux Jacques Le Roux added a comment - Leonard, Your solution is committed in trunk r1779724 R16.11 r1779725 R15.12 r1779726 R14.12 r1779727 R13.07 r1779728
        Hide
        leonardlin Leonard Lin added a comment -

        Thanks!

        Show
        leonardlin Leonard Lin added a comment - Thanks!

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            leonardlin Leonard Lin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development