The votes summary report is used for displaying votes summary per administrative area. Administrative areas of interest are Regions, Constituencies and Sub Constituencies.
Proposed changes
[ ] Create filter drop-downs for filtering the report per the Administrative area's selected. The Administrative ares list with be based the one's that have result forms in archived state. The filters will the following in the exact order:
Regions.
Constituencies.
Sub Constituencies.
[ ] Selecting region's should update the Constituencies and Sub Constituencies list with the one's in the region's selected.
[ ] The votes summary report will consist of the following columns:
Administrative area
Valid votes
Invalid votes
Cancelled votes
[ ] The Administrative area column value's should be the last Administrative Area selected so that we can display turn out per Administrative Area i.e.
On initial page load, no filter would have been selected so the report will be showing votes summary per region(s).
If a region(s) is selected, the report will still show votes summary per the selected regions.
If a constituenciey(s) is selected, the report will still show votes summary per the selected constituenciey(s).
If a sub constituenciey(s) is selected, the report will still show votes summary per the selected sub constituenciey(s).
Task check list
[ ] Create filter drop-downs for filtering the report per the Administrative area's. The filters will the following in the exact order:
Regions.
Constituencies.
Sub Constituencies.
The following Django queries should help with logic:
Context
The votes summary report is used for displaying votes summary per administrative area. Administrative areas of interest are Regions, Constituencies and Sub Constituencies.
Proposed changes
Administrative area
column value's should be the last Administrative Area selected so that we can display turn out per Administrative Area i.e.Task check list
[ ] Create filter drop-downs for filtering the report per the Administrative area's. The filters will the following in the exact order:
The following Django queries should help with logic:
[ ] Create a votes summary report per Administrative areas selected. The following Django queries will help with this logic:
Regions votes summary report:
Constituencies votes summary report:
Sub Constituencies votes summary report:
[ ] Update the
SummaryReportDataView
viewfilter_queryset
method with the above logic