* 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.
-- 
Martin Michlmayr
https://www.cyrius.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20200802094724.GB2881%40jirafa.cyrius.com.

Reply via email to