-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.6
-
Fix Version/s: 2.1.0
-
Labels:
-
Git Pull Request:
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
- Use Minium
- Log in as an admin
- Place an order for any amount of catalytic converters
- Go through the fulfillment process (i.e. create and complete a shipment that includes the catalytic converter order item)
- Observe that the available quantity for the Catalytic Converter is a negative number
- Observe the color of the availability icon in the storefront
Expected Behavior
The availability dot is red
Actual Behavior
The availability dot is yellow
- split from
-
COMMERCE-2281 Users can add a product to their cart even when it has 0 quantity
-
- Closed
-