{% extends 'base.html' %} {% block title %}Statement Detail - {{ bank_account.name }}{% endblock %} {% block page_pretitle %}
Bank Accounts / {{ bank_account.name }} / Statement
{% endblock %} {% block page_title %} {{ statement.statement_period_start|date:"F Y" }} Statement {% endblock %} {% block page_actions %} {% if unreconciled_lines > 0 %} Reconcile ({{ unreconciled_lines }} unmatched) {% endif %} Back to Statements {% endblock %} {% block content %}
Opening Balance
RM {{ statement.opening_balance|floatformat:2 }}
Closing Balance
RM {{ statement.closing_balance|floatformat:2 }}
Total Debit
RM {{ total_debit|floatformat:2 }}
Total Credit
RM {{ total_credit|floatformat:2 }}

Reconciliation Progress

{{ reconciled_lines }} of {{ total_lines }} lines reconciled
{{ progress }}%

Statement Information

Period:
{{ statement.statement_period_start|date:"d M Y" }} - {{ statement.statement_period_end|date:"d M Y" }}
Entry Method:
{% if statement.entry_method == 'AI_EXTRACTED' %} AI Extracted {% elif statement.entry_method == 'MANUAL' %} Manual Entry {% elif statement.entry_method == 'IMPORTED' %} CSV/Excel Import {% endif %}
Balance Validated:
{% if statement.balance_validated %} Yes {% else %} No {% endif %}
Total Lines:
{{ total_lines }} transactions
{% if statement.validation_notes %}
Validation Notes: {{ statement.validation_notes }}
{% endif %}

Transaction Lines

{% for line in lines %} {% empty %} {% endfor %}
# Date Description Reference Debit Credit Balance Status
{{ line.line_number }} {{ line.date|date:"d M Y" }}
{{ line.description }}
{{ line.reference|default:"-" }} {% if line.debit %} RM {{ line.debit|floatformat:2 }} {% else %} - {% endif %} {% if line.credit %} RM {{ line.credit|floatformat:2 }} {% else %} - {% endif %} RM {{ line.balance|floatformat:2 }} {% if line.is_reconciled %} Matched {% if line.reconciled_transaction %} {{ line.reconciled_transaction.reference_no }} {% endif %} {% else %} Unmatched {% endif %}
No transaction lines found
Totals: RM {{ total_debit|floatformat:2 }} RM {{ total_credit|floatformat:2 }} RM {{ statement.closing_balance|floatformat:2 }}
Back to Statements {% if unreconciled_lines > 0 %} Reconcile Remaining {{ unreconciled_lines }} Lines {% else %}
All lines reconciled!
{% endif %}
{% endblock %}