Hi all,
I'm experimenting with some thorough bookkeeping on my shopping
expenses. I want to keep track both of the amount and weight/content of
what I'm buying. For fruits (or anything with a price in €/kg) this is
kind of straightforward:
Aufwand:Einkauf:Lebensmittel:Obst 1.212kg @ 1,09€
; Kauf: platano americano
But I'm struggling to find a good notation for all those other goods.
Aufwand:Einkauf:Lebensmittel:Getränke (1.5l * 6) @@ (0,18€ * 6)
; Kauf: agua mineral
; Marke: Eroski
Is what I'm using at this moment. This allows me to copy-and-paste
between different transactions and I only have to change the count in
two places. Something like this would be better:
Aufwand:Einkauf:Lebensmittel:Getränke ((1.5l @@ 0,18€) * 6)
; Kauf: agua mineral
; Marke: Eroski
But this fails with the message "Error: Missing ')'", so I assume
nesting of parantheses in this way is not supported at the moment.
Do you have any other idea that allows me to keep all this information
together?
Some of my queries (I have "C 1.00kg = 1000g" at the top of my ledger file):
ledger bal -l 'commodity="g"'
ledger reg '%kauf=muesli' -X g
It also would be very nice for those kind of queries to be supported:
ledger prices 'Lebensmittel:Milch'
ledger prices '%kauf=leche'
This would allow me to distinguish between all those €/kg and €/l
prices, when doing reports.
I'm looking forward to your ideas or questions!
Johann