[x] Create a Ballot Status filter drop down for filtering results. The options should include:
[x] All (All ballots)
[x] Available for release (ballots where the available_for_release field is true)
[x] Not available for release (ballots where the available_for_release field is false)
[x] Create a Station Status filter drop down for filtering results. The options should include:
[x] All (All stations)
[x] Active (stations where the active field is true)
[x] In Active (stations where the active field is false)
[x] Create an input field filter for percentage of polling stations processed per race(s) selected with a default value of 0 (0 meaning it has not been applied). When applied the following should happen:
[x] Updates retrieval logic for stations and centers filter options to the following:
Get stations assigned to the selected races, use the center field and get the respective results forms then filter by ballot race.
Group by station id and count the total result forms assigned, total result forms assigned and in ARCHIVE form state and station processed percentage which will be *forms in archive/total result forms 100**.
Filter the above results where the calculated station processed percentage is equal or greater than the user defined station processed percentage and return the station id's and center id's.
[x] Create a filter drop down for all candidates, active and inactive candidates. When applied filter the results where the Candidate model field active is set to the applied value.
[x] Set the default value of number of leading candidates filter to 0. (0: meaning no pre-determined number applied).
Acceptance criteria
A user should be able to filter candidates votes results by:
[ ] Races with ballots marked as releasable.
[ ] Races with a user-entered/user defined % of polling stations processed.
[ ] Include/Exclude Stations tabulated from releasable races.
[ ] All candidates, Active or a pre-determined number of leading candidates.
User story
A user should be able to filter candidates votes results by:
In total the candidates results report will have filters in the following order:
Task check
Ballot Status
filter drop down for filtering results. The options should include:available_for_release
field is true)available_for_release
field is false)Station Status
filter drop down for filtering results. The options should include:active
field is true)active
field is false)ARCHIVE
form state and station processed percentage which will be *forms in archive/total result forms 100**.station processed percentage
is equal or greater than the user defined station processed percentage and return the station id's and center id's.Candidate
model fieldactive
is set to the applied value.Acceptance criteria
A user should be able to filter candidates votes results by: