Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add "Number of Trees per species" validation in the Batch Form #242

Open
NicolasDontigny opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@NicolasDontigny
Copy link
Collaborator

NicolasDontigny commented Sep 26, 2024

In the Batch Form, we need to make some modifications to the field "Number of Trees per Species". It should only display the species selected in the parent site, with an indication of how many trees are available in each.

The number of trees available is equal to:
[Total number of trees of that species in the parent site] - [Sum of all number of trees of that species in the other batches from that site]

The user should not be able to add more than the number of trees available for each species

Image

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants