Open nus-pe-bot opened 4 years ago
Able to buy 0 quantity is a duplicate of original issue.
"i would assume the inventory list refers to goods that have at least been in the company and then sold out." Wrong assumption, clarified in DG that quantity 0 in the inventory is also used for reminder and reference.
Duplicate of #2541
If 0 good is bought, perhaps an error can be thrown, or at the very least, not allow the inventory to be updated with 0 amount - i would assume the inventory list refers to goods that have at least been in the company and then sold out.
[original: nus-cs2103-AY1920S2/pe-interim#2379]