ChangePlusPlusVandy/UFAR-frontend

Wrong percentages for the Therapeutic coverage dashboard

Closed this issue · 2 comments

We are getting percentages that are more than 100 on the therapeutic dashboard.

Screen Shot 2022-04-30 at 1 37 35 AM

According to the therapeutic coverage for Albendazole from the screenshot below, this might be bcs the total number of children treated for albendazole is way higher than the grand total of children 5-14 years enumerated.
Screen Shot 2022-04-30 at 1 42 12 AM

For the frontend, I would suggest, finding a way to make sure it doesn't happen. Displaying a pop-up with the relevant message, such as "Can't be higher than the total" would be very helpful. We can reuse the pop-up component that we are already using in the application.

For this one, I think this is an exact case where the validation will come in handy from the admin side. I think we can leave this feature for now, unless it is easy to implement.

Sounds about right. I'll mark this as a draft.