[jira] Updated: (OFBIZ-4166) Impossible to add a variant product in a purchase order

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-4166) Impossible to add a variant product in a purchase order

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre TALLOTTE updated OFBIZ-4166:
-----------------------------------

    Attachment: ProductDetail.groovy.patch

Patch

> Impossible to add a variant product in a purchase order
> -------------------------------------------------------
>
>                 Key: OFBIZ-4166
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4166
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Pierre TALLOTTE
>            Priority: Minor
>              Labels: order, purchase, variant
>         Attachments: ProductDetail.groovy.patch
>
>
> When we add a variant product in a purchase order, we have got an error :
> {quote}
> 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)
> {quote}
> 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.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira