* Martin Michlmayr <
t...@cyrius.com> [2020-08-02 17:40]:
> You add the following line to your .beancount file to activate the
> plugin:
>
> plugin "beancount.plugins.implicit_prices"
>
> That's it. When you add this plugin, price info via @ and @@ will
> generate price entries.
Full example. Put this in test.beancount:
;---------------------
plugin "beancount.plugins.implicit_prices"
2000-01-01 open Assets:Bank
2000-01-01 open Expenses:Snacks
2020-08-02 * "Bought chocolate"
Expenses:Snacks 1.00 EUR @ 0.90 GBP
Assets:Bank -0.90 GBP
;---------------------
Now run:
bean-report test.beancount print | grep price
This will show:
2020-08-02 price EUR 0.90 GBP
This was generated by the implicit_prices plugin.