{% 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 %}
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 }} |
{{ leg.account_balance_before }} | |||||
No transactions exist |