Bug report: dividend calculation is incorrect when the investment fund currency does not match the portfolio currency
The dividend calcluation is correct only when the investment fund currency is the same as the portfolio currency.
In the case where the portfolio contains investments of different currencies, then the dividend calculation is incorrect for those invesments whose currencies do not match the portfolio currency.
To reproduce the bug:
- create a new portfolio
- set the portfolio currency to JPY
- Add this fund: 0P000025RM.T
- Add a transaction of 100 shares on 01/01/2024
- Check that the dividend values are correct
- Change the portfolio currency to GBP
- Check that the dividen values are incorrect
7th
ranked
