{% extends "_layout.html" %} {% set active_page = 'holdings' %} {% import 'macros/_account_macros.html' as account_macros with context %} {% macro num_cell(value, currency) -%}
{{ _('Account') }} | {{ _('Units') }} | {{ _('Currency') }} | {{ _('Cost currency') }} | {{ _('Average Cost') }} | {{ _('Price') }} | {{ _('Book Value') }} | {{ _('Market Value') }} |
---|---|---|---|---|---|---|---|
{{ account_macros.account_name(holding.account) }} | {{ num_cell(holding.number, holding.currency) }}{{ holding.currency}} | {{ holding.cost_currency }} | {{ num_cell(holding.cost_number, holding.cost_currency) }} {{ num_cell(holding.price_number, holding.cost_currency) }} {{ num_cell(holding.book_value, holding.cost_currency) }} {{ num_cell(holding.market_value, holding.cost_currency) }}