{% extends 'base.html' %} {% block content %}

{{ account.name }} ({{ account.type|capitalize }})

Current Balance

{{ balance|currency }}

{% if balance > 0 %} Account has {{ balance|currency }} available {% else %} Account is overdrawn by {{ (balance * -1)|currency }} {% endif %}

💰 Deposit 💸 Withdraw ✏️ Edit Account

Transaction History

{% if txns %} {% set running_balance = account.opening_balance or 0 %} {% for t in txns %} {% set running_balance = running_balance + (t.amount or 0) %} {% endfor %}
Date Description Amount Customer Balance Actions
{{ t.date|date_format }} {{ t.description }} {{ t.amount|currency }} {{ t.ref_customer.name if t.ref_customer else '-' }} {{ running_balance|currency }} Edit
Final Balance {{ balance|currency }}
{% else %}

No transactions found in this account.

{% endif %}
{% endblock %}