Currency Conversion Not Working [Advise Needed] on Fava

34 views
Skip to first unread message

Toby

unread,
Nov 14, 2019, 1:47:08 PM11/14/19
to Beancount
Hi,

How do you usually denote currency in beancount?

I usually have either one of these but its seems like Fava doesn't represent these data in conversion (ie. EUR to USD) . Its always in a separate line/graph( hence a line for EUR and a line for USD).

This is the format I usually use.

2019-06-14 * " Food with friends "
  Expenses:Food:KFC
  Assets:Cash   -3 USD @ 1.5 EUR


2019-06-14 * " Food with friends "
  Expenses:Food:KFC
  Assets:Cash   -3 USD {1.5 EUR}


However if I put them in as price with date as in (2017-03-01 price USD 1.5 EUR) it works fine (the conversion works and there is one line graph)

Does someone have any advise on this?

Thanks!

Martin Michlmayr

unread,
Nov 14, 2019, 1:52:42 PM11/14/19
to bean...@googlegroups.com
* Toby <orzya...@gmail.com> [2019-11-14 10:47]:
> How do you usually denote currency in beancount?
>
> I usually have either one of these but its seems like Fava doesn't
> represent these data in conversion (ie. EUR to USD) . Its always in a
> separate line/graph( hence a line for EUR and a line for USD).

Sounds like you might need:

plugin "beancount.plugins.implicit_prices"

> 2019-06-14 * " Food with friends "
> Expenses:Food:KFC
> Assets:Cash -3 USD @ 1.5 EUR

Unlike in ledger, beancount doesn't put such conversions into the
pricedb by default. plugins.implicit_prices will do it for you.

--
Martin Michlmayr
https://www.cyrius.com/

Thai Orzyanomics

unread,
Nov 14, 2019, 2:00:51 PM11/14/19
to bean...@googlegroups.com
hey ...

thanks a tonne! that fixed the problem instantly. I was working with the syntaxes back and forth for a long time and was wondering why it wasn't working.
Yes. It was the plugin :) 

Once again, many thanks for the swift response and the solution .



--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/f6o_TaBfSRo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/20191114185233.GA3028%40jirafa.cyrius.com.
Reply all
Reply to author
Forward
0 new messages