Bug 427054 - Commission in other than base currency show incorrect amount
Summary: Commission in other than base currency show incorrect amount
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: reports (show other bugs)
Version: 5.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-28 00:47 UTC by Berci
Modified: 2020-09-28 00:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Berci 2020-09-28 00:47:57 UTC
SUMMARY
I paid commission in USD when bought some US stocks. My base currency and the currency of the investment account is HUF.

In the reports (Transactions by Accounts and Transactions by Categories) the commission showing incorrect amounts (e.g. 711927.31 HUF for $7.99 -> 89102.2916 HUF/USD).

When checking Commission category e.g. in Income and Expenses This Year report or by double clicking it in the Categories view to open in Ledger view, the correct amount shown (2389.90 HUF for $7.99 -> 299.1113 HUF/USD). Correct amount can be calculated in Transactions by Accounts report too: total amount in the "[Split Transaction]" line and the total price paid in "Transfer to: Investments: Investment account: Stock" are correct so commission can be calculated, though showing the wrong amount.

STEPS TO REPRODUCE
1. Book the investment transaction
2. Fill the correct amount or exchange rate in the popup window
3. Check Transactions... reports

OBSERVED RESULT
Amount of commission in base currency is wrong in Transactions reports of Reports view, correct in Income and Expenses and Cash flow reports of Reports view and also correct in Categories view (Ledger view).

EXPECTED RESULT
Reports show the same amount as one can see in Categories.

SOFTWARE/OS VERSIONS
Windows: Windows 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
I use the last stable build of KMYMoney for Windows 5.1-763. Other transactions are calculated correctly in the reports too, like spending in EUR and HRK during vacations.