[ ] Create an overall results statistics section on the form results template for displaying the overall results based on applied filters. This section will take the structure of a table with the following columns:
Expected number of processed forms.
Forms processed.
Percentage of processed forms.
[ ] Create a Generate Overall Report button that upon click triggers an AJax request which take's the all the applied filter's specifically, selected centers, stations and race type's then calculates queries the overall results. For the query set use the following logic:
[ ] Filter the Result form model by the applied filters to get the number of forms processed. Also apply where form_state is ARCHIVED.
[ ] Filter the Result form model by distinct and tally id to get the expected number of processed forms. Check an example here.
[ ] Divide the the forms processed by the expected number of processed to get the percentage number of forms processed. Check an example here.
Task check list
Generate Overall Report
button that upon click triggers an AJax request which take's the all the applied filter's specifically, selected centers, stations and race type's then calculates queries the overall results. For the query set use the following logic:Related to
https://github.com/onaio/tally-ho/issues/357