ledger equity equivalence in beancount

30 views
Skip to first unread message

Martin Michlmayr

unread,
Mar 5, 2020, 9:07:02 AM3/5/20
to bean...@googlegroups.com
Is there an equivalence for "ledger equity" in beancount? It creates
opening balances so you can split files into different years.

--
Martin Michlmayr
https://www.cyrius.com/

Martin Blais

unread,
Mar 5, 2020, 11:47:19 PM3/5/20
to Beancount
Generally speaking the idea has been to use the year close transformation to do this at reporting time, and not bake this into any file (it's really a reporting thing).
But I think I did hack a script at some point to output the transactions you'd insert to actually bake the splits into files.
Search in /experimental, should be in there somewhere, I don't think it ever made it to tried-tested-and-true status.
If you can't find it, you can easily just write a script to iterate over all your date-sorted transactions in order and accumulate balances in a dict of Inventory objects, and stop at the given date, and process that to find the balances to insert. Should be something like 30 LOC.




--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/20200305140640.GJ23439%40jirafa.cyrius.com.
Reply all
Reply to author
Forward
0 new messages