If I sell a stock today (04/12/2018) and record it in the ledger the transaction is not reporting on the Investment Capital Gains by Account Report. If I change the date to 04/11 still nothing. If I change the date to 04/10 no reporting. If I change the ledger date to 04/09/2018 it finally shows up on the report. Same is true for the Investment Capital Gains by Type report. The report isn't reporting the correct transaction information for the pulled date information. I'm running KMM 5.0.2 on Manjaro.
Created attachment 131762 [details] Capital Gains report calculation Investment Capital Gains report indicates "Capital Gains" incorrectly. For example Buy value: 252,138.53 Sell Value: 239,481.98 Capital Gain: -12656.55 (negative) But the report indicates the Capital gain as 12,656.55 (positive). Please fix.
Can you provide a small sample file (not your private data) that shows the problem and attach it here? TIA.
Created attachment 131769 [details] test case Added test case as requested
Changing the status
Created attachment 131773 [details] Report output Thanks for the demo file. I don't see the problem here (master and 5.1 as of today). What environment do you have/use? Which locale settings do you use? Could it be, that this is related to bug #426406?
(In reply to Thomas Baumgart from comment #5) > Created attachment 131773 [details] > Report output > > Thanks for the demo file. I don't see the problem here (master and 5.1 as of > today). What environment do you have/use? Which locale settings do you use? > Could it be, that this is related to bug #426406? Using Version 5.1.0-2a911c86b Not sure about the locale, using for Indian Rupee currency.
Created attachment 131775 [details] Screenshot Screenshot
(In reply to Suresh PB from comment #6) > Using Version 5.1.0-2a911c86b That's the problem. The commit after 2a911c86b fixed the problem. See https://invent.kde.org/office/kmymoney/-/commit/322d51c2889eba0bbe8c7f362831d6de5e0e2026 and look for the parent of it. In case you can solve it by updating your version, please mark this bug as RESOLVED and a duplicate of 426406. TIA.
(In reply to Thomas Baumgart from comment #8) > (In reply to Suresh PB from comment #6) > > > Using Version 5.1.0-2a911c86b > > That's the problem. The commit after 2a911c86b fixed the problem. See > https://invent.kde.org/office/kmymoney/-/commit/ > 322d51c2889eba0bbe8c7f362831d6de5e0e2026 and look for the parent of it. > > In case you can solve it by updating your version, please mark this bug as > RESOLVED and a duplicate of 426406. TIA. How to download the latest version
Where did you get the version from in the first place? Looking at the version it seems to be a nightly build. Just get a fresh one. Or am I missing something? Oh, and BTW, I noticed that your problem does not have anything in common with the original problem (we call it a hijacked bug). So we better do not close it and mark it as duplicate.
Moved to 'general' components