Marcin Borkowski <[email protected]> writes:
>> I see. Why don't just use daily budget then?
>> The daily budget gets applied progressively, and I know how much I can
>> spend each day.
>
> That's what I wanted to do. But since the daily budget apparently does
> not kick in on days when I spent nothing on e.g. food, this is of little
> use for me... If my daily budget is 20 PLN and I spend nothing on
> a particular day, I expect to be "allowed" to spend 40 PLN on the next
> day.
Sorry, I think you missed my first reply.
Try
~ Daily from 2022
Expenses:Food 30.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
> ledger reg -f /tmp/test.dat ^expenses -b 2022-01-01 -e 2022-01-04 -y %Y-%m-%d
> --invert --budget
2022-01-01 Budget transaction Expenses:Food
30.00 PLN 30.00 PLN
2022-01-02 Budget transaction Expenses:Food
30.00 PLN 60.00 PLN
2022-01-02 Groceries Expenses:Food
-20.00 PLN 40.00 PLN
2022-01-03 Budget transaction Expenses:Food
30.00 PLN 70.00 PLN
2022-01-03 Groceries Expenses:Food
-100.00 PLN -30.00 PLN
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
--
---
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/87wn59kerr.fsf%40localhost.