beancount / beangrow

Returns calculations on portfolios in Beancount
GNU General Public License v2.0
54 stars 18 forks source link

[Question] Some Dividend transactions not being recognized #26

Open pallavg opened 6 months ago

pallavg commented 6 months ago

I'm running into a strange situation where some dividend transactions are not being recognized.

I have the following:

    investment {
        currency: "FXNAX"
        asset_account: "Assets:US:Fidelity:HSA:FXNAX"
        dividend_accounts: "Income:US:Fidelity:HSA:Dividends:FXNAX"
        cash_accounts: "Assets:US:Fidelity:HSA:Cash"
    }

    investment {
        currency: "VTI"
        asset_account: "Assets:US:Vanguard:Roth:VTI"
        dividend_accounts: "Income:US:Vanguard:Roth:Dividends:VTI"
        cash_accounts: "Assets:US:Vanguard:Roth:Cash"
    }

The tnxs look like this:

2023-02-28 * "INCOME - DIV - DIVIDEND RECEIVED"
  Assets:US:Fidelity:HSA:Cash                        41.71 USD
  Income:US:Fidelity:HSA:Dividends:FXNAX            -41.71 USD

2023-09-26 * "REINVEST - DIV - DIVIDEND REINVESTMENT"
  Assets:US:Vanguard:Roth:VTI                  0.817 VTI {212.9008 USD}
  Income:US:Vanguard:Roth:Dividends:VTI      -173.94 USD

In the HSA case, the dividend goes to cash and then is reinvested from cash. However in the Roth case, the dividend is automatically reinvested. I am importing these tnxs via OFX files from the brokerage websites. Beangrow/fava-portflio-returns shows the HSA dividends without any issue. However, the dividends from Vanguard Roth don't show up. Is there a way to handle this scenario? It would be a pain for me to manually change all the dividends -> cash and then from cash -> security purchase. Thanks.

d-k-c commented 6 months ago

Your issue is similar to #23 You should +1 that issue to help it gain visibility