stats4sd / aec_portfolio

A proof of concept for the AEC Consortium Project Management / Assessment System
GNU General Public License v3.0
0 stars 0 forks source link

[BUG] Budget filters work with different currencies #206

Closed dave-mills closed 9 months ago

dave-mills commented 1 year ago

On the main dashboard, the budet filter works with the "budget_org" value for initiatives. This is fine for "your" initiatives, as they will all be in the default currency for the selected organisation. But other organisations' initiatives will have their own default currency. So right now we are comparing different currencies...

The ideal solution is to include the currency for each initiative in all of the default org currencies on the platform. This is quite a challenge, but I'm not sure of another way to be able to effectively group initiatives by 'budget' when every org has potentially a different currency.

dave-mills commented 1 year ago

Idea: In addition to converting initiative budgets to the organisation's default currency, we also convert to EUR as a "platform-default" currency. We store that in the projects table, and use that for the budget filtering...

Pros:

Cons: