I have noticed an interesting phenomenon when using ledger-cli to forecast
my accounts.
Using the ledger file below:
~ Yearly
Expenses:Auto $500.00
Assets:Checking
~ Monthly
Income:Timberline -$2000.00
Expenses:Dining $100.00
Assets:Checking
2016/01/04 TACO BELL
Expenses:Dining $12.50
Assets:Checking
And this command:
ledger reg Checking -f .\test.dat --forecast "d<[2016/03/02]"
I get the following output:
16-Jan-04 TACO BELL Assets:Checking $-12.50
$-12.50
16-Feb-01 Forecast transaction Assets:Checking $1900.00
$1387.50
16-Mar-01 Forecast transaction Assets:Checking $1900.00
$3287.50
Notice the incorrect math in the totals column. If, however, I remove the
~Yearly section, like this:
~ Monthly
Income:Timberline -$2000.00
Expenses:Dining $100.00
Assets:Checking
2016/01/04 TACO BELL
Expenses:Dining $12.50
Assets:Checking
And the same command, I get the following output:
16-Jan-04 TACO BELL Assets:Checking $-12.50
$-12.50
16-Feb-01 Forecast transaction Assets:Checking $1900.00
$1887.50
16-Mar-01 Forecast transaction Assets:Checking $1900.00
$3787.50
Notice the math is correct. For some reason, adding seperate budget groups
such as Yearly or Quarterly cause the math to be incorrect for monthly
forecasts by the totals in those groups.
Any ideas?
Thanks for any insight you can share!
--
---
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].
For more options, visit https://groups.google.com/d/optout.