NAPOSCA / pantryplus

A curbside service for food pantries
http://pantryplus.herokuapp.com
Apache License 2.0
2 stars 0 forks source link

Coupon and Meat can become negative #71

Closed alexjamesmalcolm closed 6 years ago

alexjamesmalcolm commented 6 years ago

On the shopping view, if you click + on a coupon/meat, this creates a CountedLineItem. Once the CountedLineItem is created you can then click - until the quantity is negative. Maybe this could be solved by deleting CountedLineItem when quantity is zero.

alexjamesmalcolm commented 6 years ago

Story: As a pantry goer, I don't want to be able to have negative quantities in my cart, because I don't want to owe the pantry food.

alexjamesmalcolm commented 6 years ago

CountedLineItem cannot become negative