{% extends "ledger/base.html" %} {% load ledger_tags %} {% block title %}Transaction{% endblock %} {% block content %}

{{ txn.merchant.name|default:"Transaction" }} {{ txn.amount|money }}

← All transactions
Date
{{ txn.date }}
Account
{{ txn.account.name }}
Raw description
{{ txn.raw_description }}
Category
{{ txn.category.name|default:"-" }} ({{ txn.get_category_source_display }}{% if txn.category_source == "model" %}, confidence {{ txn.confidence|floatformat:2 }}{% endif %})
Transfer
{% if txn.is_transfer %}yes{% if txn.transfer_pair %}, paired with {{ txn.transfer_pair.account.name }} on {{ txn.transfer_pair.date }}{% endif %}{% else %}no{% endif %}

Split

{% if children %} {% for c in children %}{% endfor %}
{{ c.category.name }}{{ c.amount|money }}
{% csrf_token %}
{% else %}

Divide this transaction across categories. Parts must add up to {{ txn.amount|money }}.

{% csrf_token %} {% for i in split_rows %}
{% endfor %}
{% endif %}
{% endblock %}