Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Adding aggregate links to itemized tables #409

Merged
merged 2 commits into from
Aug 4, 2015

Conversation

noahmanger
Copy link
Contributor

I saw an opportunity to help with one of the dev tasks ( #376 ), so I went ahead and did it. This adds links to the amounts in the Receipts and Disbursements tab tables to the itemized transactions that make up the total. So when you click the Facebook total in this table:

screenshot-01

It shows the transactions that make up that total:

screen shot 2015-08-03 at 7 22 44 pm

I tried to code this up in a smart, reusable way, but please let me know if there's anything I should do to tighten it up (I imagine there is).

Noah Manger added 2 commits August 3, 2015 18:28
Including a new helper functioning for setting min and max dates from a
cycle year
@noahmanger
Copy link
Contributor Author

Oh, I should add: for a few of the links it seems we need to implement corresponding filters on the browse view. I think the ones missing are:

  • Receipts: the ID of the contributing committee
  • Disbursements: the ID of the disbursing committee
  • Disbursements: the ID of the receiving committee

The last two confuse me because I thought we had those working, but maybe I'm doing something wrong. I know that #406 fixes these filters on the frontend.

@LindsayYoung
Copy link
Contributor

We will need to filter out non-individual line-items too or the not reported total will not match.

That depends on making line number a parameter #18F/openFEC/1102

@noahmanger
Copy link
Contributor Author

Thanks@LindsayYoung . Just captured in #412

@jmcarp jmcarp deleted the feature/links-to-aggregates branch October 2, 2015 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants