Last active
December 8, 2017 21:58
-
-
Save keisisqrl/dcc9ce46bb64b0a65bdb to your computer and use it in GitHub Desktop.
Budgeting gas (as dollars) breaks ledger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; run 'ledger budget' or 'ledger budget -B' or 'ledger budget -X $' using this file | |
; 'ledger budget' or -B: Error: Cannot convert a balance with multiple commodities to an amount | |
; 'ledger budget -X $': Error: Cannot add an uninitialized value to an amount | |
~ Monthly | |
Expenses:Auto:Fuel $200.00 | |
Expenses:Test $60 | |
Assets:Budget | |
2015/03/12 * Safeway Gas | |
Expenses:Auto:Fuel 15.315 GAL @ $3.039 | |
Assets:Personal | |
2015/03/12 * Union 76 | |
Expenses:Auto:Fuel 3.261 GAL @ $2.999 | |
Assets:Personal | |
2015/03/12 * Test Transaction | |
Expenses:Test $50 | |
Asssets:Personal |
For those how, like me, reach this page the "uninitialized value" error is because Monthy uses "Assets:Budget" while all transactions are Personal. The "cannot convert a balance..." is expected [1]
[1] https://groups.google.com/d/msg/ledger-cli/xjy5Ox0TBn8/54SMGhqCtX8J
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever find a solution to this issue? I am having a similar problem when I invoke a budget report on any particular month, but no issues for a running total...