{% load markdown %} {% load i18n %}
{% if not disable_selection or not dummy %} {% endif %}
{% if not transaction.deleted %} {% if transaction.is_paid %}{% else %}{% endif %} {% else %}
{% if transaction.is_paid %}{% else %}{% endif %}
{% endif %}
{# Date#}
{{ transaction.date|date:"SHORT_DATE_FORMAT" }} • {{ transaction.reference_date|date:"b/Y" }}
{# Description#}
{% spaceless %} {{ transaction.description }} {% if transaction.installment_plan and transaction.installment_id %} {{ transaction.installment_id }}/{{ transaction.installment_plan.installment_total_number }} {% endif %} {% if transaction.recurring_transaction %} {% endif %} {% if transaction.dca_expense_entries.all or transaction.dca_income_entries.all %} {% trans 'DCA' %} {% endif %} {% endspaceless %}
{# Entities #} {% comment %} First, check for the highest priority: a valid 'overriden_entities' list. {% endcomment %} {% if overriden_entities %}
{{ overriden_entities|join:", " }}
{% comment %} If no override, fall back to transaction entities, but ONLY if the transaction has an ID. {% endcomment %} {% elif transaction.id and transaction.entities.all %}
{{ transaction.entities.all|join:", " }}
{% endif %} {# Notes#} {% if transaction.notes %}
{{ transaction.notes | limited_markdown | linebreaksbr }}
{% endif %} {# Category#} {% if transaction.category %}
{{ transaction.category.name }}
{% endif %} {# Tags#} {% comment %} First, check for the highest priority: a valid 'overriden_tags' list. {% endcomment %} {% if overriden_tags %}
{{ overriden_tags|join:", " }}
{% comment %} If no override, fall back to transaction tags, but ONLY if the transaction has an ID. {% endcomment %} {% elif transaction.id and transaction.tags.all %}
{{ transaction.tags.all|join:", " }}
{% endif %}
{# Exchange Rate#} {% if not dummy %} {% with exchanged=transaction.exchanged_amount %} {% if exchanged %}
{% endif %} {% endwith %} {% endif %}
{% if transaction.account.group %}{{ transaction.account.group.name }} • {% endif %}{{ transaction.account.name }}
{% if not dummy %}
{# Item actions#}
{% endif %}