In addition to what o1bigtenor suggested I also like to add a little structure 
to
the organization of my ledger files and make heavy use of ledger's include
directive (see: 
https://www.ledger-cli.org/3.0/doc/ledger3.html#Command-Directives).

For example, in my top-level directory I create subdirectories for every year, 
i.e.
2019/, 2020/, 2021/, etc.  Also in my top-level directory I create a bunch of 
ledger
files that *only* contain include directives, e.g. 2021.ledger contains just 
the two
lines "include 2021/business.ledger" and "include 2021/personal.ledger"; these 
are
the files I pass to ledger on the command line.  Then inside each year-based 
subdir
I create a bunch of files that actually record all of my financial transactions,
organized in whatever way makes the most sense (e.g. my "2021/personal.ledger" 
file
also just includes a bunch of files, like "include checking.ledger" and
"include mortgage.ledger").

Ok, so how would this help with different tax year end date?  Currently, all of 
my
tax years end on December 31, but if I ever had a need to support something 
else I
would just add a new file in my top-level directory such as 
"2020-tax-year.ledger"
that just contains the lines "include 2019/whatever.ledger" and
"include 2020/whatever.ledger".  And then so I don't forget to add the 
appropriate
--begin and --end command line arguments I would write a wrapper script in my
top-level directory such as "tax-year-report.sh".


-----Original Message-----
From: "Eric S Fraga" <[email protected]>
Sent: Monday, February 22, 2021 07:32
To: [email protected]
Subject: Re: Year end date

On Monday, 22 Feb 2021 at 07:20, o1bigtenor wrote:
> May I suggest that you are making life more difficult for yourself and
> to the OP there is a simple yet, imo anyway, elegant solution.

Thank you.  I do use -b and -e as well.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4.4 on Debian bullseye/sid

-- 

--- 
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/87v9akqlcu.fsf%40ucl.ac.uk.


-- 

--- 
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/1614004193.583216506%40apps.rackspace.com.

Reply via email to