Closed korrat closed 1 year ago
It does work already. See #32 on how to configure it.
Thank you for pointing me in the right direction. I should have checked the examples more carefully.
I took a look at the asset allocation module and came across this line:
https://github.com/redstreet/fava_investor/blob/661feddd31b7f37d2dd7c783acb49c2506eaab2a/fava_investor/modules/assetalloc_class/libassetalloc.py#L200
Would it be possible/sensible to reduce the inventory directly using convert.convert_position
? This way, we would get conversions via the cost currency “for free” when there is no direct conversion possible.
This would be equivalent to the BQL query I gave.
Np at all, the doc on this is not obvious. I just added a reference to #32 to the README.
Reg convert.convert_position
: interesting, and good to know. It's been a while since I wrote this, and I can't recall if that's something I tried and know doesn't work, or if it's something I never considered.
Have you tried it? If you can confirm that it works as expected, would you be up for submitting a PR, possibly with new test cases if needed? Thanks!
With the following minimal example:
When running fava-investor, I get an error:
Running the following beancount query works:
This suggests, to me, that fava-investor cannot make use of transitive pricing relations. Could this be added?