https://bugs.kde.org/show_bug.cgi?id=451392
Bug ID: 451392 Summary: Capital Gains report lists wrong cost value when purchase is in foreign currency Product: kmymoney Version: 5.1.2 Platform: Mint (Ubuntu based) OS: Linux Status: REPORTED Severity: major Priority: NOR Component: reports Assignee: kmymoney-devel@kde.org Reporter: markm10...@gmail.com Target Milestone: --- SUMMARY My Brokerage account and investments are in local currency (US$) with one exception. One investment was purchased in a foreign currency (JPY) and that investment account is designated in JPY. When I run the Capital Gains report (for investments I still own), it lists the correct market value for the JPY investment but cost is wrong. It appears to have divided the cost in JPY twice by the US$ to JPY rate. In this case, correct cost per share is $52.24 (5550 JPY @ 106.2392 JPY/USD) but the program reports a cost of $0.49. Reviewing Price pairs, only the correct price pair of USD -> JPY = 106.2392 exists for that date. There is no JPY -> USD pair that might conflict. Investment Ledger also shows all amounts correctly. STEPS TO REPRODUCE 1. Setup a foreign currency investment account 2. Purchase an investment in the foreign currency 3. Run Capital Gains report for owned investments OBSERVED RESULT Market value of foreign currency is correctly displayed in local currency but cost is wrong EXPECTED RESULT Cost should be calculated correctly in local currency SOFTWARE/OS VERSIONS (available in About System) KDE Frameworks Version 5.91.0 Qt Version 5.15.2 (built against 5.15.2) ADDITIONAL INFORMATION -- You are receiving this mail because: You are the assignee for the bug.