{% extends 'hordak/base.html' %} {% load hordak %} {% block page_name %}Account {{ account.name }}{% endblock %} {% block page_description %}See all transactions for an account{% endblock %} {% block content %}
Balance: {{ account.balance }}
{% for leg in legs %} {# Show the entering balance at the bottom of the list #} {% if forloop.last %} {% endif %} {% empty %} {% endfor %}
Date Account Description Debit Credit Balance
{{ leg.transaction.date }} {% if leg.is_debit %} {% for debit_leg in leg.transaction.legs.debits %} {{ debit_leg.account.name }}{% if not forloop.last %},{% endif %} {% endfor %} {% else %} {% for credit_leg in leg.transaction.legs.credits %} {{ credit_leg.account.name }}{% if not forloop.last %},{% endif %} {% endfor %} {% endif %} {{ leg.transaction.description }} {% if leg.is_debit %}{{ leg.amount|abs }}{% endif %} {% if leg.is_credit %}{{ leg.amount|abs }}{% endif %} {{ leg.account_balance_after }} Delete
{{ leg.account_balance_before }}
No transactions exist

Back

{% endblock %}