Skip to content

Commit

Permalink
Merge pull request #1 from d-k-c/master
Browse files Browse the repository at this point in the history
consider ASSET_DIVIDEND transactions when computing return
  • Loading branch information
scanta2 authored Jan 10, 2025
2 parents b7d9ea9 + a59039f commit b626969
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beangrow/investments.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ def produce_cash_flows_general(entry: data.Directive,
posting.meta["flow"] = cf
flows.append(cf)

elif category == Cat.ASSET and has_dividend:
cf = CashFlow(entry.date, convert.get_weight(posting), has_dividend,
"dividend", account)
posting.meta["flow"] = cf
flows.append(cf)

return flows


Expand Down

0 comments on commit b626969

Please sign in to comment.