Skip to content

In new purchase, Category purchase values must be non-negative #5059

Open
@cielf

Description

@cielf

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.

Metadata

Metadata

Assignees

Labels

Good First IssueSuitable for users that are newer or less experienced

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions