Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3295

Currency Number Formatting Allows Negative and Non-Numerical Decimal Places

    Details

    • Sprint:
      FlexSprint4

      Description

      When configuring currencies, decimal places can be assigned negative and non-numeric values.

      Steps to Reproduce

      1. Go to Control Panel → Commerce → Settings → Currencies
      2. Create a currency
      3. Fill out the required fields
      4. Give the Maximum Decimal Places and Minimum Decimal Places fields negative values, e.g. -10
      5. Save

      Expected Behavior

      Validation error, as these fields can't be negative numbers

      Actual Behavior

      No validation error. Saves successfully

      Reproduced On

      7.2

      Tomcat 9.0.33 + HSQL 2.3.3
      DXP 7.2 git hash cf49d78b37a0575edbf96a54bf53199ac6fae0ca
      Commerce git hash fd1da8617e20241bb86e8662ff04f7a64edf0faf

      7.1

      Tomcat 9.0.33 + HSQL 2.3.3
      DXP 7.1 and Commerce git hash fd1da8617e20241bb86e8662ff04f7a64edf0faf

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kristin.onias Kristin Onias
              Reporter:
              robert.huff Robert Huff
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1