{% load i18n %}
{% with c=perf.currency a=account.currency %}
{# Buy/sell are transfers so the tracker sees them; income uses the account's income entity #}
| {{ tx.date|date:"SHORT_DATE_FORMAT" }} |
{{ tx.description }}
{% if p %}
{% if tx.type == 'IN' %}{% translate 'Bought / contributed' %}{% else %}{% translate 'Sold / withdrew' %}{% endif %}
· {{ p.account.name }}
{% else %}
{% if tx.id not in perf.result_ids %}
{% if tx.type == 'IN' %}{% translate 'Money in' %}{% else %}{% translate 'Money out' %}{% endif %}
{% else %}
{% if tx.type == 'IN' %}{% if perf.priced %}{% translate 'Gain' %}{% else %}{% translate 'Earnings' %}{% endif %}{% else %}{% translate 'Loss, tax or fee' %}{% endif %}
{% endif %}
{% endif %}
|
|
| {{ tx.date|date:"SHORT_DATE_FORMAT" }} | {{ tx.description }} {{ tx.account.name }} |