[wdmmg-discuss] Possible bug with WDMMG aggregations
apt1002 at goose.minworks.co.uk
Sun Aug 15 02:19:25 BST 2010
On Fri, 13 Aug 2010, William Waites wrote:
> Not certain that I'm understanding the code properly, but
> consider this fragment from cofog_map.js:
> ["01.2", "EU transactions", "GNI-based contribution (net of
> abatement and collection costs)"],
> ["01.2", "of which: international services", "1.2 Foreign economic
> When the data is imported, the function of government returned
> for lines in the input with both of these gets mapped to 01.2 and
> any other information is no longer preserved. In particular the
> "of which" hint is lost.
Correct. That's the best we can do without inventing non-standard codes.
> I believe the meaning of these badly formed columns in the CSV
> are that the first is all EU transactions and the second is only
> those transactions which have to do with foreign economic aid.
No, there is no double counting in the CRA. If the second is separated
out, it is also deducted from the first, so the total remains correct.
> The result of this is that when the aggregation is done I think
> they are both added together,
> counting e.g. the amounts in the second line twice,
> and similarly for other cases in the CSV that have an "of which"
> Please tell me I'm wrong!
As far as I know, the CRA does not double count things, so I think what
we've done works. It's one of the good things about the CRA.
More information about the openspending-discuss