[jira] [Updated] (OFBIZ-224) Problem with approximations if the ShoppingCart.basePrice has more than three decimal digits.

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

[jira] [Updated] (OFBIZ-224) Problem with approximations if the ShoppingCart.basePrice has more than three decimal digits.

Nicolas Malin (Jira)

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

Sharan Foga updated OFBIZ-224:
------------------------------
    Sprint: Bug Crush Event - 21/2/2015

> Problem with approximations if the ShoppingCart.basePrice has more than three decimal digits.
> ---------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-224
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-224
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>            Reporter: Jacopo Cappellato
>
> There is a problem with approximations if, in the ShoppingCartItem.basePrice field, a value with more than three decimal digits is set.
> This can happen mainly for two reasons:
> 1) the price in the ProductPrice entity has three decimal digits (it is now possible because that field is now of type currency-precise)
> 2) the base price is calculated from a price rule
> The problem is that, when the order is stored in the system, the unit price is approximated to two decimal digits (in OrderItem); unfortunately all the calculations (adjustments etc.) are performed with the original value with more than three decimal digits.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)