jplusplus / football-tax

http://football-tax.herokuapp.com
1 stars 0 forks source link

page territory: issue with data in the charts "spendings by beneficiary" #2

Closed annelisebouyer closed 8 years ago

annelisebouyer commented 8 years ago

For instance here https://football-tax.herokuapp.com/#!/territories/fra-ville-de-nice

We see that Ville de Nice spent 263k for the Association OGC Nice Côte d'Azur capture d ecran 2015-12-03 a 18 55 47

But the amount in the spreadsheet is 5,3M capture d ecran 2015-12-03 a 18 56 47

It's not related to the previou bug as it's not only a problem of on digit.

pirhoo commented 8 years ago

The amount was wrong because I thought the chart had to be calculated for the year with most spending !

But now my amount is bigger than yours because I use two transfers you don't:

[
  { paymentid: 51,
    payer: 'Ville de Nice',
    beneficiary: 'Association OGC Nice Côte d\'Azur',
    amount: 320000,
    includedin: 14,
    date: 2012,
    type: 'Subsidy',
    source: 'Délibération N° 13.6 du 21 décembre 2011 (ville de Nice)',
    comment: 'p.7' },
  { paymentid: 52,
    payer: 'Ville de Nice',
    beneficiary: 'Association OGC Nice Côte d\'Azur',
    amount: 1315000,
    includedin: 16,
    date: 2013,
    type: 'Subsidy',
    source: 'Délibération N° 13.1 du 20 décembre 2012 (ville de Nice)',
    comment: 'p.7' }
]

Why aren't they in you total?