Hello, I'm trying to start tracking my expenses with ledger, but I have
a question about the best way to split transactions.
Is there a variable I can reference that evaluates to the sum of
postings so far?
Let's say I spend $100 at a department store, I could write this:
2023/01/01 Department Store
Expenses:Clothing $8.99 ; T-Shirt
Expenses:Groceries ($100 - $8.99) ; Everything else was food
Liabilities:Credit $-100
My concern is that while extracting 1 item isn't so bad, if I have to do
several it's quite laborious:
2023/01/01 Department Store
Expenses:Clothing $8.99 ; T-Shirt
Expenses:Household $11.99 ; Light Bulbs
Expenses:Coffee $3.99
Expenses:Entertainment $7.99 ; Book
Expenses:Groceries ($100 - $8.99 - $11.99 - $3.99 - $7.99) ; Ugly :(
Liabilities:Credit $-100
If there was a variable like $sum, I could just do ($100 - $sum). Is
there anything like that?
I don't care about the expense buckets being exact (e.g. ignoring sales
tax is okay), so long as the total transaction amount matches my
statement.
Thank you!
Tavis.
--
_o) $ lynx
lock.cmpxchg8b.com
/\\ _o) _o) $ finger
tav...@sdf.org
_\_V _( ) _( ) @taviso