[kmymoney] [Bug 452026] Income and Expenses chart displays wrong stats when currency rate changes

Thomas Baumgart bugzilla_noreply at kde.org
Sat Apr 2 10:59:38 BST 2022


https://bugs.kde.org/show_bug.cgi?id=452026

Thomas Baumgart <tbaumgart at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|REPORTED                    |CONFIRMED

--- Comment #1 from Thomas Baumgart <tbaumgart at kde.org> ---
The problem is due to aggregation - which happens on the reporting period - and
the conversion to the base currency which is performed on the aggregated
values. That means, that at the time of conversion to the base currency, the
actual transaction is not visible anymore but only the aggregated value for the
month in this case. No matter if you pick the first or last date of the period
to get the conversion rate at this point it maybe wrong depending when the rate
changed. In your case, if the conversion changed back to 1:4 on March 24th it
does not matter if you pick March 1st or March 31st: both will be provide the
wrong result.

To solve this issue, it would be better to aggregate not only on the basis of
the account's currency but also on the base currency and do the conversion on
the basis of the rate at the post date. Then during rendering of the report use
the aggregated account's value or the aggregated converted value. That will
provide more accurate results but means a large change to the reporting system.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list