-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better tax to dividend matching #45
Conversation
@pronebird če boš imel 5 minut, vrži prosim uč :) |
Speaking of I see bunch of negative dividends in IB's XML output, but looks like the DohDiv report is correct, seems to match the dividend statement on my account. I haven't noticed any issues so far. I'll upload the reports to e-davki sometime soon and let you know if I see some cheesy errors they usually give me. |
It seems to work on Urban's data as well. |
@jamsix awesome! Thanks! One more question, do "payment in lieu of dividend" count as losses against dividends? I never thought of that before but I had a few short positions where I had to pay dividend. I see some reference in the source code but not sure how negative amounts are handled: Line 1099 in fd2e957
|
Line 1099 in fd2e957
Current code doesn't handle "negative dividends" unless they are reversals. "negative dividends" are removed in Line 1283 in fd2e957
Primary reason is technical, |
@jamsix right, thanks. |
Fix for the problem described in #42 (comment)
When there are multiple dividends from the same company on the same day, but not all of them taxed (such as what happened with
GOLD
in 2021) we need to match the tax to the right dividend entry.