LWN.net Logo

The accounting quest: Ledger

The accounting quest: Ledger

Posted Jun 19, 2012 22:39 UTC (Tue) by eternaleye (guest, #67051)
In reply to: The accounting quest: Ledger by tbm
Parent article: The accounting quest: Ledger

To elaborate further on the ability to include other files, I use a system where my ledger is kept in a git repository with the following layout:

main.dat
global
global/00-defaults.dat
global/01-accounts.dat
by-date
by-date/2012
by-date/2012/2012-01.dat
by-date/2012/2012-02.dat
by-date/2012/2012-03.dat
by-date/2012/2012-04.dat
by-date/2012/2012-05.dat
by-date/2012/2012-06.dat
by-date/2012.dat

main.dat includes global/*.dat, and then by-date/*.dat.

by-date contains 2012/ and 2012.dat (and another such pair for each year, when I've finished entering older years), which includes by-date/2012/*.dat (which are monthly).

accounts.dat is all of the accounts I deal with, and defaults.dat is for stuff like setting the default currency.

That puts a nice limit on the size of each file, and I find it superior to dividing things up based on accounts because that can be icky when entries involve multiple accounts. In order to classify entries, I just use tags. It also makes importing from a monthly CSV even easier, since it can just go in its own file.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds