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

Impossible to add a variant product in a purchase order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • Trunk
    • 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
          Jacques Le Roux
        2. ProductDetail.groovy.patch
          2 kB
          Pierre TALLOTTE

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: