On Sat, Jul 4, 2020 at 1:36 PM James Cook <jc...@cs.berkeley.edu> wrote:

> >
> > There's a downside to the method you're using: there's no price and
> mistakes will go unchecked.
> > It would be more robust to use @, let Beancount do its thing, and to
> write a plugin to strip the price and insert the postings.
>
> Yes, plugin support would be good. I think a simple plugin that sees
>
>   Expenses:Work:Conference      60.00 EUR @ 2 USD
>
> and transforms that into
>
>   Expenses:Work:Conference      60.00 EUR
>   Equity:Trade -60.00 EUR
>   Equity:Trade 120.00 USD
>
> would match my use case pretty well. I'm not sure if that's exactly
> what the existing trading accounts plugin you linked to does. If it's
> not, it's simple enough I might just write it.
>

Yes, but there are a few gotchas, see comments:
https://github.com/beancount/beancount/blob/master/beancount/plugins/currency_accounts.py#L129
It's 95% of the way there.
In v3 I'd like to make this the main method and to iron out all the
remaining issues.




James
>
> --
> 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/CAHpmPOA8%3D_R%3DZQubFZLotdTPHWhwCEe_CD75REvWC%3Dv%2BHx1KDg%40mail.gmail.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/CAK21%2BhNUFh6mzmLZdAGNQberUW%2B%3DGhgoPWpzSoRRfYbos5%3DM5Q%40mail.gmail.com.

Reply via email to