ccavanaugh / jgnash

jGnash Personal Finance
http://ccavanaugh.github.io/jgnash/
Other
139 stars 80 forks source link

Ignore cash transfers for dividends in realized gains #33

Closed t-pa closed 6 years ago

t-pa commented 6 years ago

Every dividend transaction contains two transaction entries, one of which is just the transfer to the cash account. When calculating the realized gains, this cash transfer has to be ignored.

Previously, the realized gains from dividends were always zero because the two transactions canceled each other out.

I'm not sure that I identified the problem completely. This fixes the problem for dividends, but it my be necessary to fix this in similar situations, too.