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 org is not calculated on first save #198

Closed dave-mills closed 1 year ago

dave-mills commented 1 year ago

Describe the bug When the initiative budget is in the organisation's default currency, the budget_org is not filled on the first save.

This is because the exchange rate is only set at the database level, so the PHP code to calculate the budget_org doesn't have that information yet.

This means any initiative that was only saved once (on creation) doesn't have a budget_org, and so isn't included in the budgets on the dashboard.