{% 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') }} | {{ _('Acquisition Date') }} |
---|---|---|---|---|---|---|---|---|
{{ account_macros.account_name(posting.account) }} | {{ num_cell(posting.units.number if posting.units.currency != '*' else None, posting.units.currency) }}{{ posting.units.currency}} | {{ cost_currency }} | {{ num_cell(posting.cost.number, cost_currency) }} {{ num_cell(posting.price, cost_currency) }} {{ num_cell(posting.units.number * posting.cost.number if posting.cost else posting.units.number, cost_currency) }} {{ num_cell(posting.units.number * posting.price if posting.price else None, cost_currency) }}{{ posting.cost.date or '' if posting.cost else '' }} |