I get all this and I use -b and -e extensively! But none of this does what I want - a single list of tallied transactions for each financial year from one ledger command. Yes, I can do it by executing multiple commands with different -b and -e arguments, but that's IMHO not very elegant.
I like the output of --yearly I don't like that it has to be 1 Jan through to 31 Dec for each year. :) On Mon, 22 Feb 2021 at 14:40, Kent R. Spillner <[email protected]> wrote: > > My solution has been to have a separate ledger file for each tax year > > but that means transferring balances at the end of one year to create > > the new year's file which sometimes leads to issues should anything need > > to be updated in the previous year's records (missing entry, for > > instance). > > Exactly, but you can work around that issue by using the include directive > (see: > https://www.ledger-cli.org/3.0/doc/ledger3.html#Command-Directives). > > For example, I have a script that writes out my year-end balances to the > next year's > directory (I create subdirectories in my top-level directory for every > year) with a > filename of "<organization>-opening-balances.ledger" (e.g. > "2021/business-opening-balances.ledger" and > "2021/personal-opening-balances.ledger"). > Then at the top of my "2021/business.ledger" and "2021/personal.ledger" > files I just > "include business-opening-balances.ledger" or > "personal-opening-balances.ledger" > respectively. > > That allows me to go back and automatically overwrite those files to > adjust my opening > balances at any time without having to edit any subsequent transaction. > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" 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/ledger-cli/1614004814.116413098%40apps.rackspace.com > . > -- --- You received this message because you are subscribed to the Google Groups "Ledger" 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/ledger-cli/CAJcMy34E1V6twTB4oV7JQ%3DoT83cEbf3MRsxWm4JvohHiTxC91A%40mail.gmail.com.
