This repository has been archived by the owner on Dec 23, 2017. It is now read-only.
Aggregate committee financials for multiple authorized committees. #233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a candidate has multiple authorized or principal committees, users
should see aggregated receipts, cash on hand, etc., across all such
committees before the details for each committee. This patch shows these
aggregate on the candidate detail page, but only when the candidate has
multiple authorized committees.
@dcpcc1967 and @jwchumley: Aggregated cash on hand and debt are different from the current FEC site. The logic implemented here simply adds up cash and debt for the most recent report for all relevant committees; it looks like FECViewer is picking a single committee and using its most recent figures, but it's not clear how that committee is chosen. Figures for receipts and disbursements have been identical for the examples I've looked at.
The proposed layout looks like this (any feedback or PRs welcome!):
[Resolves #832]