{% extends 'base.html' %} {% block content %}
{% if balance > 0 %} You owe {{ balance|currency }} {% else %} You have credit of {{ (balance * -1)|currency }} {% endif %}
{% if opening_balance_amount and opening_balance_amount > 0 %}Opening Balance: {{ opening_balance_amount|currency }} ({% if opening_balance_type == 'debit' %}Debit - You owe{% else %}Credit - We owe you{% endif %})
{% endif %}| Date | Description | Debit (Amount Owed) | Credit (Payment) | Balance |
|---|---|---|---|---|
| {{ current_user.created_at.date() if current_user.created_at else 'N/A' }} | Opening Balance ({{ opening_balance_type|upper }}) | {% if opening_balance_type == 'debit' %}{{ opening_balance_amount|currency }}{% else %}-{% endif %} | {% if opening_balance_type == 'credit' %}{{ opening_balance_amount|currency }}{% else %}-{% endif %} | {{ running_balance|currency }} |
| {{ entry.date|date_format }} | {{ entry.description }} | {% if entry.debit and entry.debit > 0 %} {{ entry.debit|currency }} {% else %} - {% endif %} | {% if entry.credit and entry.credit > 0 %} {{ entry.credit|currency }} {% else %} - {% endif %} | {{ running_balance|currency }} |
| Final Balance | {{ balance|currency }} | |||
No transactions found in your ledger.
{% endif %}