NAPOSCA / pantryplus

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

CountedLineItem's in Cart view with zero quantity #76

Closed alexjamesmalcolm closed 6 years ago

alexjamesmalcolm commented 6 years ago

If a CountedLineItem had been added and then reduced to zero in the shopping view, then in the cart view it persists as having a quantity as zero. It should not be seen at all. This is because there is no system for deleting CountedLineItem's once they have a quantity of 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

When CountedLineItem quantity is zero it should be removed from cart, and also deleted from the lineItemRepo