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

Impossible to add a variant product in a purchase order

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: order

      Description

      When we add a variant product in a purchase order, we have got an error :

      org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productdetail: java.lang.IllegalArgumentException: Cannot format given Object as a Number (Cannot format given Object as a Number)

      This error occurs in ProductDetail.groovy because virtualPriceMap.basePrice is null. In PriceServices.java (who create virtualPriceMap), basePrice is not add in virtualPriceMap. In the patch, I replace basePrice by price, and it works well.

        Attachments

        1. ProductDetail.groovy.patch
          2 kB
          Pierre TALLOTTE
        2. ProductDetail.groovy.patch
          2 kB
          Jacques Le Roux

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              ptallotte Pierre TALLOTTE
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: