You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
1.3 KiB
17 lines
1.3 KiB
{% extends "core/base.html" %} |
|
{% block title %}Transaction · Gizmoduck{% endblock %} |
|
{% block content %} |
|
<div class="heading"><h1>Transaction</h1><a class="button" href="{% url 'transaction-annotate' transaction.pk %}">Edit annotations</a></div> |
|
<dl class="details"> |
|
<dt>Description</dt><dd>{{ transaction.description|default:"(No description)" }}</dd> |
|
<dt>Posting date</dt><dd>{{ transaction.posting_date|date:"Y-m-d" }}</dd> |
|
<dt>Occurrence date</dt><dd>{{ transaction.occurrence_date|date:"Y-m-d"|default:"—" }}</dd> |
|
<dt>Amount</dt><dd>{{ transaction.amount }} {{ transaction.account.currency }}</dd> |
|
<dt>Account</dt><dd>{{ transaction.account.name }}</dd> |
|
<dt>Kind</dt><dd>{{ transaction.get_kind_display }}</dd> |
|
<dt>Payee</dt><dd>{{ transaction.payee.name|default:"—" }}</dd> |
|
<dt>Category</dt><dd>{{ transaction.category.name|default:"Uncategorized" }}</dd> |
|
</dl> |
|
<h2>Source provenance</h2> |
|
{% if transaction.source_records.all %}<div class="table-wrap"><table><thead><tr><th>Format</th><th>Parser</th><th>Location</th></tr></thead><tbody>{% for source in transaction.source_records.all %}<tr><td>{{ source.source_format }}</td><td>{{ source.parser_version }}</td><td>{{ source.item_locator }}</td></tr>{% endfor %}</tbody></table></div>{% else %}<p>This transaction was entered manually.</p>{% endif %} |
|
{% endblock %}
|
|
|