jwiegley/ledger — Issue #42: Budget entry is applied only once
Author: muhuk
Created: 2011-10-24 23:39:03+00:00
State: open

I have a single monthly budget entry and I can't get it to work correctly. Here is the command and the output:

$ ledger -f budget_test.txt --budget reg ^income
2011/10/01 Budget entry Income:Salary $500 $500
2011/10/04 Work Income:Salary $-500 0
2011/09/04 Work Income:Salary $-500 $-500
2011/08/04 Work Income:Salary $-500 $-1000
2011/07/04 Work Income:Salary $-500 $-1500

I am using the file below:

~ Monthly
Assets:Bank:Checking $500
Income:Salary

2011/10/04 Work
Assets:Bank:Checking $500
Income:Salary

2011/09/04 Work
Assets:Bank:Checking $500
Income:Salary

2011/08/04 Work
Assets:Bank:Checking $500
Income:Salary

2011/07/04 Work
Assets:Bank:Checking $500
Income:Salary

I expect it to output something like this:

$ ledger -f budget_test.txt --budget reg ^income
2011/10/01 Budget entry Income:Salary $500 $500
2011/10/04 Work Income:Salary $-500 0
2011/09/01 Budget entry Income:Salary $500 $500
2011/09/04 Work Income:Salary $-500 $0
2011/08/01 Budget entry Income:Salary $500 $500
2011/08/04 Work Income:Salary $-500 $0
2011/07/01 Budget entry Income:Salary $500 $500
2011/07/04 Work Income:Salary $-500 $0

What am I doing wrong? Or is this a bug?

$ ledger --version
Ledger 2.6.2, the command-line accounting tool