You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre TALLOTTE (JIRA)" <ji...@apache.org> on 2011/02/07 12:42:30 UTC

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

    [ https://issues.apache.org/jira/browse/OFBIZ-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991341#comment-12991341 ] 

Pierre TALLOTTE edited comment on OFBIZ-4166 at 2/7/11 11:42 AM:
-----------------------------------------------------------------

I attach the patch (editing just one line in ProductDetail.groovy).

      was (Author: ptallotte):
    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