Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling unitemized totals and other summary amounts #99

Open
gordonje opened this issue Nov 3, 2017 · 7 comments
Open

Handling unitemized totals and other summary amounts #99

gordonje opened this issue Nov 3, 2017 · 7 comments

Comments

@gordonje
Copy link
Contributor

gordonje commented Nov 3, 2017

Something @palewire and I were just discussing. This is something we touched on in the previous conversation, but I don't think we fully resolved.

In CA, filers don't have to itemize contributions under $100. Instead, they can report a total for all unitemized contributions. It isn't clear where this would be recorded in our current schema, and it's pretty essential in order to figuring out the total amount raised.

We think we need a place to store this and other total or summary amounts. What we have in mind is an optional, repeating .totals or .summaries field on Filing that would have the following properties:

  • note: Description of the total (e.g., "Unitemized contributions" or "Total expenditures")
  • amount: Decimal amount of the total.
  • currency: Currency denomination of amount.

Would be interested to hear from others if this would adequately cover other kinds of filings in other jurisdiction. Maybe in some cases we might also need to link the totals to specific elections?

@aepton
Copy link
Contributor

aepton commented Nov 4, 2017

That seems great for now. I'll add it to my list of updates.

@jsfenfen
Copy link

jsfenfen commented Nov 4, 2017

I think a number of states allow wonderfully nebulous things like 'cash balance adjustment' or some sorta periodic adjustment. This is important in "continuous filing" states, like Oregon (real live Orestar manual image below, p. 31, 'transaction subtype' !), where there are no periodic reports filed with summary figures, so the amounts are calculable only on a rolling basis (and so some minor adjustment is sometimes allowed).
image

Just plain not having a filing object associated with transactions is a bigger challenge. I assume one could just generate a synthetic filing object (I guess that would be listed in the filing authority section?). Not sure?

@gordonje
Copy link
Contributor Author

gordonje commented Nov 6, 2017

@aepton's endorsement is enough for me to go ahead making this change in python-opencivicdata.

@jsfenfen's example suggests we might want to call this repeating field something other than .totals if it's going to used for amounts labeled "cash balance adjustment". Is .summary_amounts better? Or does anyone have any other suggestions?

@palewire
Copy link

palewire commented Nov 6, 2017

@jsfenfen Could the Oregon problem be solved by the future addition of a "subtransaction" model that handles sub expenditures and things like this cash balance adjustment?

@gordonje
Copy link
Contributor Author

gordonje commented Nov 6, 2017

Now that I think more about it...this new repeating .summary_amounts field prob belongs on FilingAction, not Filing. This is consistent with the way transactions are linked to the filing on which they are reported and allows for a filing to have multiple versions of the same summary amount, in the case that these change when filings are amended.

@aepton
Copy link
Contributor

aepton commented Nov 7, 2017

Yeah, that makes a lot of sense. I was initially hostile to putting summary amounts on the Filing, but you're right that the totals will often change and FilingAction seems like a good place to put them.

@aepton
Copy link
Contributor

aepton commented Dec 16, 2017

Fixed in #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants