{% 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 Status 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 | default:'' }} {% if imported_tx.matched_transaction_model %} {{ imported_tx.matched_transaction_model }} {% else %} {{ imported_tx.transaction_model | default:'' }} {% endif %} {% if imported_tx.matched_transaction_model %} {% trans 'Matched' %} {% elif imported_tx.transaction_model %} {% trans 'Imported' %} {% elif imported_tx.is_parent and imported_tx.imported_count > 0 %} {% trans 'Children Imported' %} {% else %} {% trans 'Imported' %} {% endif %}