Skip to content

Instantly share code, notes, and snippets.

@leoc
Last active January 1, 2016 20:49
Show Gist options
  • Save leoc/8199268 to your computer and use it in GitHub Desktop.
Save leoc/8199268 to your computer and use it in GitHub Desktop.
# ledger -f test.ledger budget
While evaluating value expression:
ansify_if(justify((get_at(display_total, 1) ? (((100% * scrub(get_at(display_total, 0))) / (- scrub(get_at(display_total, 1)))) : 0)), 5, -1, true, false), (((color & get_at(display_total, 1)) & (abs((quantity(scrub(get_at(display_total, 0))) / quantity(scrub(get_at(display_total, 1))))) >= 1)) ? (magenta : null)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
While converting -68.20EUR
50.00USD to an amount:
While calling function 'quantity -68.20EUR
50.00USD':
While calling function 'abs <#EXPR (quantity(scrub(get_at(display_total, {0}))) / quantity(scrub(get_at(display_total, {1}))))>':
While calling function 'ansify_if (<#EXPR justify((get_at(display_total, {1}) ? ((({100%} * scrub(get_at(display_total, {0}))) / (- scrub(get_at(display_total, {1})))) : {0})), {5}, {-1}, true, false)>, <#EXPR (((color & get_at(display_total, {1})) & (abs((quantity(scrub(get_at(display_total, {0}))) / quantity(scrub(get_at(display_total, {1}))))) >= {1})) ? (magenta : null))>)':
Error: Cannot convert a balance with multiple commodities to an amount
~ Monthly
Expenses:Restaurants 100EUR
Assets
2013/12/04 Fattoria La Vialla
Expenses:Restaurants 32.20EUR
Assets:Cash
2013/12/07 ATM
Assets:Cash 50.00USD @ 0.72EUR
Assets:Giro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment