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

The availability dot should be red if the available quantity is less than 0

    Details

      Description

      In the case of backorders, the available quantity may be a negative number, but this case didn't seem to be accounted for in the logic for which color to display for the availability dot. If the available quantity is less than 0, the dot turns yellow instead of red.

      Steps to Reproduce

      1. Use Minium
      2. Log in as an admin
      3. Place an order for any amount of catalytic converters
      4. Go through the fulfillment process (i.e. create and complete a shipment that includes the catalytic converter order item)
      5. Observe that the available quantity for the Catalytic Converter is a negative number
      6. Observe the color of the availability icon in the storefront

      Expected Behavior
      The availability dot is red

      Actual Behavior
      The availability dot is yellow

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matija.petanjek Matija Petanjek
              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.0