{% load i18n %} {% load django_ledger %}
{% regroup imported_txs by group_uuid as bundled_groups %} {% for group in bundled_groups %} {% for imported_tx in group.list %} {% endfor %} {% endfor %}
Dated Posted Description Amount Activity Entity Unit Map To TX Actions
{% trans 'Bundle' %} {{ forloop.counter }} — {% trans 'Parent' %}: {% with parent_tx=group.list.0.parent|default:group.list.0 %} {{ parent_tx.date_posted }} · {{ parent_tx.name }} · {% currency_symbol %}{{ parent_tx.get_amount }} {% if parent_tx.get_activity_display %} · {{ parent_tx.get_activity_display }}{% endif %} {% endwith %} {% if group.list.0.is_bundled %}{% trans 'Bundled' %}{% else %} {% trans 'Not Bundled' %}{% endif %}
{{ imported_tx.date_posted }} {% if imported_tx.is_children %} {% trans 'Child' %} {% else %} {% trans 'Parent' %} {% endif %} {{ imported_tx.name }} {% currency_symbol %}{{ imported_tx.get_amount }} {% if imported_tx.activity %} {{ imported_tx.get_activity_display }} {% endif %} {% if imported_tx.entity_unit %}{{ imported_tx.entity_unit }}{% endif %} {{ imported_tx.account_model }} {{ imported_tx.transaction_model }}