Open
Description
Summary
The category purchase values in new purchase / edit purchase should be constrained to be non-negative
Why?
Hygiene
Details
To see this, sign in as [email protected], then click "Purchases" and "New Purchase" in the left-hand menu.
Enter enough information to be able to save, including at least one negative number in the "purchase total for..." (still have the purchase total add up to the 4 category totals. Save.
It allows it! And shouldn't.
Put in checks so that none of the 'Purchase Total for..." fields can be negative.
Criteria for completion
- behaviour as described above
- tests to confirm behaviour as described above.