Skip to content

Instantly share code, notes, and snippets.

@keisisqrl
Last active December 8, 2017 21:58
Show Gist options
  • Save keisisqrl/dcc9ce46bb64b0a65bdb to your computer and use it in GitHub Desktop.
Save keisisqrl/dcc9ce46bb64b0a65bdb to your computer and use it in GitHub Desktop.
Budgeting gas (as dollars) breaks ledger
; 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
@engines-wafu
Copy link

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...

@pfsmorigo
Copy link

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