Skip to content

Holdings: show conversion dropdown and apply conversion to query #1257

Open
@mkatsevVR

Description

For positions not held at cost, value function in beancount doesn't perform any currency conversion.
In Fava's Income and Balance views the user can select "cost/market value/converted to XXX" where the last option applies explicit conversion to the desired currency, even for positions not held at cost. In the Holdings view there is no such option and thus there is no way to show all holdings in the common currency.
For example:

plugin "beancount.plugins.implicit_prices"
plugin "beancount.plugins.auto_accounts"
option "operating_currency" "USD"

2001-02-01 * 
  Assets:EUR 100 EUR @@ 70 USD
  Assets:USD

Everything in USD:
image

No option to show everything in USD:
image

Would it be acceptable to add a currency dropdown to the Holdings page with the options being "cost currency/USD/EUR/whatever" ? Then the first option would work same as it does now, but if the user selects a specific currency, then we show market_value and price using that currency?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions