Hi all,

as I mentioned previously, I finally decided to finish my booklet about
Ledger, and I really want to show how to do budgeting with it.

However, I myself cannit grok it.  Please help.

Here is my example file (totally fake).

--8<---------------cut here---------------start------------->8---
~ Daily
    Expenses:Food                  30.00 PLN
    Assets

~ Monthly
    Expenses:Books                200.00 PLN
    Assets

2022-01-02 Groceries
    Expenses:Food                  20.00 PLN
    Assets:Cash

2022-01-03 C.S.Lewis "That hideous strength"
    Expenses:Books                 45.00 PLN
    Assets:Cash

2022-01-03 Groceries
    Expenses:Food                  100.00 PLN
    Assets:Cash
--8<---------------cut here---------------end--------------->8---

I ran a budgeting command against this file, and I don't know how to
interpret its output.

--8<---------------cut here---------------start------------->8---
$ ledger reg -f budget-example.ledger ^expenses -b 2022-01-01 -e 2022-01-04 -y 
%Y-%m-%d --invert --budget
2022-01-02 Budget transaction  Expenses:Food    30.00 PLN   30.00 PLN
2022-01-01 Budget transaction  Expenses:Books  200.00 PLN  230.00 PLN
2022-01-02 Groceries           Expenses:Food   -20.00 PLN  210.00 PLN
2022-01-03 Budget transaction  Expenses:Food    30.00 PLN  240.00 PLN
2022-01-03 C.S.Lewis "..."     Expenses:Books  -45.00 PLN  195.00 PLN
2022-01-03 Groceries           Expenses:Food  -100.00 PLN   95.00 PLN
--8<---------------cut here---------------end--------------->8---

1. Why is there no "budget transaction" for groceries for 2022-01-01?
2. I would assume that after these three days my "books" budget should
   allow me to spend 155 PLN more on books and my "food" budget would
   be short of 30 PLN.  Yet I can see neither of these amounts in the
   report.  How to make Ledger compute them?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87mt68nzd8.fsf%40mbork.pl.

Reply via email to