Closed sreilly closed 6 months ago
This is also the likely source of errors in calculating cost basis when there has been a split. It was reported as a bug on April 24 in the Moneydance support forum by Bob B with attachments. After today's Amazon split, cost basis is also incorrect.
Ok. This is an issue. I almost thought it wasn't as the symptom doesn't actually appear until you match the 200/100 (using this example). Ie - before you match, it all visually looks ok. This match crosses a split date. TBH - I'm puzzled that more people haven't complained about this...
Anyway, I'm investigating...
FYI - the cost basis code has been recently rewritten (unifying code for both lots and average) and should be included in the next preview. I actually think this issue could be cosmetic and that the matched data is correct. I hope the cost basis and gains, in the next preview, actually deal with this properly.
Anyway, I'll see if I can pinpoint the actual error in the lot window....
Confirmed this is cosmetic.
I have provided and tested a code fix for this issue. It's with IK to review.
In your scenario CapitalGains was correct.
As mentioned, there are fixes coming anyway with a new cost basis / capital gains calculations that should fix other issues you allude to.
FYI. This should be in the latest Alpha MD2024(5101)
Reported by reznor in a slack thread:
dummy security used to test:
the lots:
and a file that shows the issue: Personal Finances-20220310-1013.moneydancearchive.zip