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

The Maximum Discount Amount field has bad validation rules

    Details

      Description

      Steps to Reproduce

      1. Go to Control Panel → Commerce → Discounts
      2. Create a Discount
      3. Fill in the required fields
      4. For the field Maximum Discount Amount...

      Case #1

      1. Insert a value less than 1 and greater than 0 with no leading 0, e.g. .50

      Expected Behavior

      No validation errors

      Actual Behavior

      Validation Error

      Notes

      0.50 is an accepted value, but .50 is not

      Case #2

      1. Insert a number 0 or less, e.g. -50

      Expected Behavior

      Validation Error. A 0 or negative maximum discount amount should not be allowed.

      Actual Behavior

      No validation error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nikki.prudencio Nikki Prudencio
              Reporter:
              corbin.murakami Corbin Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1