Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15116

ezoracle : Number of digits wrong for ezmultiprice datatype

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Future, QA tracked issues
    • 4.1.3, 4.2.0alpha1, extension/ezoracle 2.0.1
    • Database related
    • None

    Description

      There seems to be a problem with floating points in multiprice datatype when use oracle.
      With mysql as back-end, all prices will have two digits (for instance "8.00" and "8.10".
      With oracle, prices will have as few digits as possible ( "8" and "8.1" )

      Steps to reproduce

      Create currency, NOK, custom rate=8, factor = 1
      Create currency EUR, custom rate=1, factor=1
      Create class with multiprice datatype, have EUR as default currency

      Create object of this new class
      Set EUR price to "8", (NOK will have "autoprice") and publish.
      Edit object again.
      NOK price will then be calculated to "64", should be "64.00"
      EUR price will be displayed as "8", should be "8.00"

      Attachments

        Activity

          People

            unknown unknown
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: