I've used ledger 2.6.2 for a while now but the new `budget' report is so
appealing i think I'll switch to the development version. However, I get
a strange error when I run:
ledger -f /tmp/ledger.dat -p april budget
--8<---------------cut here---------------start------------->8---
While evaluating value expression:
ansify_if(justify(get_at(total_expr, 1) ? ((100% * scrub(get_at(total_expr, 0))) / -(scrub(get_at(total_expr, 1)))) : 0, 5, -1, true, false), ((color & get_at(total_expr, 1)) & (abs((quantity(scrub(get_at(total_expr, 0))) / quantity(scrub(get_at(total_expr, 1))))) >= 1)) ? magenta : null)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
While converting 50,00 PLN to an amount:
Error: Cannot convert a balance with multiple commodities to an amount
314,72 PLN 0 314,72 PLN 0 Checking
--8<---------------cut here---------------end--------------->8---
with the ledger.dat like this
--8<---------------cut here---------------start------------->8---
D 1000,00 PLN
~ Monthly since 2010/04/01
Expenses:Dining 150,00 PLN
Expenses 300,00 PLN
Savings 50,00 PLN
Income -500,00 PLN
Checking
2010/04/01 Income
Checking:PLN 500,00 PLN
Income:Salary
2010/04/04 ATM
Checking:PLN
Expenses:Cash 30,00 USD @ 2,8426 PLN
2010/04/04 Restaurant
Expenses:Dining 25,00 USD
Expenses:Cash
2010/04/14 Restaurant.PL
Checking:PLN
Expenses:Dining 50,00 PLN
2010/04/28 Savings
Checking:PLN
Savings:PLN 50,00 PLN
--8<---------------cut here---------------end--------------->8---
What does it all mean?
PS. BTW. Yet another error pops up if there is no newline after the last
posting
--8<---------------cut here---------------start------------->8---
While evaluating value expression:
ansify_if(justify(get_at(total_expr, 1) ? ((100% * scrub(get_at(total_expr, 0))) / -(scrub(get_at(total_expr, 1)))) : 0, 5, -1, true, false), ((color & get_at(total_expr, 1)) & (abs((quantity(scrub(get_at(total_expr, 0))) / quantity(scrub(get_at(total_expr, 1))))) >= 1)) ? magenta : null)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
While converting -50,00 PL to an amount:
Error: Cannot convert a balance with multiple commodities to an amount
--8<---------------cut here---------------end--------------->8---
--
Miłego dnia,
Łukasz Stelmach
> While converting 50,00 PLN to an amount:
> Error: Cannot convert a balance with multiple commodities to an amount
> 314,72 PLN 0 314,72 PLN 0 Checking
Yeah, you can't budget with multiple commodities. You have to use -X to convert them all to a single reference commodity, like "-X USD".
John
That doesn't work either. While -X EUR bal works in my case, -X EUR budget
gives
Error: Cannot find the value of a sequence
see http://newartisans.com/bugzilla/show_bug.cgi?id=378
--
Martin Michlmayr
http://www.cyrius.com/
> That doesn't work either. While -X EUR bal works in my case, -X EUR budget
> gives
> Error: Cannot find the value of a sequence
Ok, this is a bug.
John