You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2009/12/05 23:33:20 UTC
[jira] Commented: (OFBIZ-224) Problem with approximations if the
ShoppingCart.basePrice has more than three decimal digits.
[ https://issues.apache.org/jira/browse/OFBIZ-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786521#action_12786521 ]
Jacques Le Roux commented on OFBIZ-224:
---------------------------------------
This is still an *important issue*, isn'it ? Or do I miss someting and it should be closed ?
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.