[BUG]: Disallow Saving Purchase with a Quantity of 0
janeewheatley#55071d ago
🐞 BugGood First IssueDifficulty—Beginner
AI analyzing...
Issue Description
Is there an existing issue for this?
[x] I have searched the existing issues
Current Behavior
Users should not be able to save a purchase that is empty.
We checked production to make sure that our users were not currently doing this to preserve comments and they are not. See slack conversation here.
Expected Behavior
User should not be able to save a New Purchase with 0 quantity
User should still be able to save a purchase with greater than 0 quantity
Steps To Reproduce
Steps to Reproduce:
Click on Purchases in side bar
Click on New Purchase
Fill out the new purchase form and either leave out the quantity or explicitly enter a 0 quantity.
Notice that the purchase can be saved
Environment
Criteria for Completion
[ ] User should not be able to save a New Purchase with 0 quantity
[ ] Error should show up in the red banner that calls out that this purchase cannot be saved. An additional comment should say "Quantity must be greater than 0". See current implementation of red banner:
[ ] User should still be able to save a purchase with greater than 0 quantity