Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Calculate the sponsored percentage for a Site #243

Closed
NicolasDontigny opened this issue Sep 26, 2024 · 0 comments · Fixed by #255
Closed

Calculate the sponsored percentage for a Site #243

NicolasDontigny opened this issue Sep 26, 2024 · 0 comments · Fixed by #255
Assignees

Comments

@NicolasDontigny
Copy link
Collaborator

Currently, the % sponsored number is just a random number returned from the back-end. We need to implement the actual calculation for this number. Here is the calculation:

[Sum of all total number of trees for all batches of the site] / [Total number of trees in the site]

Story #242 Makes sure that the sum of the total number of trees in the batches cannot exceed the total number available in the site, although it is not necessarily a requirement for this story, both can be done independently

@NicolasDontigny NicolasDontigny moved this to Backlog in Releaf Canopeum Sep 26, 2024
@NicolasDontigny NicolasDontigny self-assigned this Sep 26, 2024
@NicolasDontigny NicolasDontigny moved this from Backlog to In progress in Releaf Canopeum Sep 26, 2024
@NicolasDontigny NicolasDontigny moved this from In progress to In review in Releaf Canopeum Sep 30, 2024
@Samuel-Therrien-Beslogic Samuel-Therrien-Beslogic linked a pull request Oct 1, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In review to Done in Releaf Canopeum Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant