OFBiz
  1. OFBiz
  2. OFBIZ-224

Problem with approximations if the ShoppingCart.basePrice has more than three decimal digits.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: order
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          Jacopo Cappellato created issue -
          Jacques Le Roux made changes -
          Field Original Value New Value
          Link This issue is related to OFBIZ-494 [ OFBIZ-494 ]
          Gavin made changes -
          Workflow jira [ 12383376 ] OFbiz Workflow [ 12507168 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Jacopo Cappellato
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development