As a follow up to myself...to try to understand what is going on I reduced it down so I only have one operating_currency -- AUD.
One surprise is the way currency conversions work in holdings_report.py:convert_to_currency. What I mean is: I have this... 2017-01-11 price AUD 0.7379 USD 2017-01-11 price USD 22,568.27 VND But because I don't have an explicit AUD <-> VND price the call to prices.get_latest_price(price_map, base_quote) returns (None, None). This results in it throwing out anything I have with a cost_currency of VND. If I add another entry, so it looks like 2017-01-11 price AUD 0.7379 USD 2017-01-11 price AUD 16,856.94 VND 2017-01-11 price USD 22,568.27 VND then things work as expected. Is it even possible to have bean-price fetch two different prices for AUD like that? One in VND and one in USD? It seems like currency/commodity conversion should be using a graph rather than just a dictionary lookup. I have a patch that does this that I can submit so long as I'm not misunderstanding how all this is supposed to work. When I change it to use a graph lookup then the problem I talked about in my original post goes away. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/bce7f4a6-a8e0-4809-bb3c-8c75742bb88b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
