[jira] [Updated] (OFBIZ-10014) Error while adding the product to the 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-10014) Error while adding the product to the order

Nicolas Malin (Jira)

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

Julian Leichert updated OFBIZ-10014:
------------------------------------
    Attachment: OFBIZ-10014_org.apache.ofbiz.product.price.PriceServices.patch  

The bug occurs when you try to add a product to the shoppingcart and the currencyUomId does not match the currencyUomId of the cart.
In _calculateProductPrice()_ the cart default currency was always used as the currency of the product, so the converting logic would never be executed. This patch resolves this issue.

While fixing this bug i stumbled upon another cause, but i don't know if this behaviour is planned.
 * If product does not have an Purchase_price, no validProductPrice is found

So my question is, should the different priceProductPurposes be added to the logic?

Further if the currencies don't match and they should be converted, the property convertProductPriceCurrency in catalog must be set to true

{code:java}
// Convert the value to the price currency, if required
if ("true".equals(EntityUtilProperties.getPropertyValue("catalog", "convertProductPriceCurrency",
                delegator)))
{code}


> Error while adding the product to the order
> --------------------------------------------
>
>                 Key: OFBIZ-10014
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10014
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>            Reporter: Garima jain
>            Assignee: Michael Brohl
>         Attachments: OFBIZ-10014_org.apache.ofbiz.product.price.PriceServices.patch  , order.png
>
>
> Steps to Generate the Issue.
> 1. Navigate to[ https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderentry]
> 2. Click on Quick LookUp button and select a product (cap,dvd) and click on 'Add To Order' button.
> Actual: Error occurred
> Expected: The product should be added to the order.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)