I've noticed that adding a note to a periodic entry without specifying the redundant transaction values produces a null amount error:
# this works fine: $ cat /tmp/sample ~ monthly ; note assets:checking $1,000.00 income:work:salary -$1,000.00 $ ledger --forecast "d<[2011]" reg -f /tmp/sample 10-Dec-01 Forecast transaction assets:checking $1,000.00 $1,000.00 10-Dec-01 Forecast transaction income:work:salary $-1,000.00 0 # removing the redundant info from the entry breaks it for some reason: $ cat /tmp/sample ~ monthly ; note assets:checking $1,000.00 income:work:salary $ ledger --forecast "d<[2011]" reg -f /tmp/sample While parsing file "/tmp/sample", line 4: While parsing periodic transaction: > ~ monthly > ; note > assets:checking $1,000.00 > income:work:salary Error: Only one posting with null amount allowed per transaction # this works without notes: $ cat /tmp/sample ~ monthly assets:checking $1,000.00 income:work:salary [pl...@durandal ledger]$ ledger --forecast "d<[2011]" reg -f /tmp/ sample 10-Dec-01 Forecast transaction assets:checking $1,000.00 $1,000.00 10-Dec-01 Forecast transaction income:work:salary $-1,000.00 0 $ ledger --version Ledger 3.0.0-20100623, the command-line accounting tool I expect all three cases to not fail with an error. Is this a (known) bug?
