A little follow-up on this.

I didn't drop the idea of keeping as much information as possible but I've 
decided to simplify things a little.

I do store quantities, brands etc. as key-value tags. I've decided to leave 
emacs alone for this one and just go with raw text.

To help me fill in the reports, I've wrote a script which scans my 
(monthly) journal files for payees, accounts and other details to provide a 
completion of these in terminal, reads the input and produces transaction 
records in ledger format. It's ugly and limited but it covers 80% of what I 
need. It's hosted on github (but it's one rare occasion when it prints in 
console in Russian): 
https://github.com/Hoodoo/worstpractices/blob/master/ledger-input.rb

A sample transaction looks like this:

2015/02/28 Бахетле
    Сигареты    109.0
        ;nm: Fine Cut белый
        ;bd: Dunhill
        ;un: пачка
        ;qt: 1
        ;pc: 109.0
    Альфа

I can then query for information I need like this:

[hoodoo@x230 ledger]$ ledger --strict -f main.ledger reg tag bd = Lavazza
15-Feb-28 Бахетле         Expenses:Food:Tea and coffee        379.9        
379.9
                          Expenses:Food:Tea and coffee        693.3       
1073.2
                          Expenses:Food:Tea and coffee      1324.38      
2397.58

and it also covers ~80% of what I need (choosing one supermarket over 
another, watching prices change and figuring out what was that nice 
delicious white tea I've bought a couple of months ago and seeing where 
money go).

All the rest of my setup is nothing special.

-- 

--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to