Skip to content

Allow a hard limit on number of specific items per request. #5269

@cielf

Description

@cielf

Summary

Provide a way to put a hard limit on the number of specific items per request

Why?

Making the requests more realistic in light of what the banks can actually provide

Details

Add a "Request Limit" field to each item.
If the item has custom units, we'd need a request limit for each custom unit.

When a request is being saved, the amount of the item requested will be checked against its request limit.
If the request limit is provided, and the amount requested is higher than the request limit, an error

"[Item name]: You requested [amount requested] [units if applicable], but are limited to [request limit][units if applicable].

will be displayed, and the request not saved.

This is considered advanced due to familiarity with the current system, and design work

Criteria for completion

  • behaviour as described
  • automated tests for behaviour
  • update user guide for behaviour

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions