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.
On Thu, Mar 5, 2020 at 9:07 AM Martin Michlmayr <[email protected]> wrote: > 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/ > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/20200305140640.GJ23439%40jirafa.cyrius.com > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPYZqE2SUpO-mvi%2BZYV%3D1-ho%3DeBULhhUXROjDJwS1dk4g%40mail.gmail.com.
