{% extends 'base.html' %} {% load static %} {% block title %}{{ account.code }} - {{ account.name }} - HAVEN GRAZURI INVESTMENT LIMITED{% endblock %} {% block content %}

{{ account.code }} - {{ account.name }}

{{ account.get_account_type_display }} Account

Current Balance

KES {{ current_balance|floatformat:2|default:"0.00" }}

Total Transactions

{{ transaction_summary.transaction_count|default:0 }}

Status

{% if account.is_active %} Active {% else %} Inactive {% endif %}

Account Information

{{ account.code }}

{{ account.get_account_type_display }}

{% if account.subtype %}

{{ account.get_subtype_display }}

{% endif %}

{% if account.parent_account %} {{ account.parent_account.code }} - {{ account.parent_account.name }} {% else %} None (Top Level) {% endif %}

{{ account.description|default:"No description provided" }}

{% if account.created_by %}{{ account.created_by.get_full_name|default:account.created_by.username }}{% else %}System{% endif %}

{{ account.created_at|date:"M d, Y H:i" }}

{% if account.is_system_account %}

System Account

This is a system account required for proper operation. Some editing capabilities are restricted.

{% endif %}

Transaction Summary

KES {{ transaction_summary.total_debits|floatformat:2|default:"0.00" }}

KES {{ transaction_summary.total_credits|floatformat:2|default:"0.00" }}

Recent Transactions

{% for transaction in recent_transactions %} {% empty %} {% endfor %}
Date Reference Description Debit Credit Balance
{{ transaction.transaction_date|date:"M d, Y" }} {{ transaction.reference_number }} {{ transaction.description|truncatewords:10 }} {% if transaction.debit_amount > 0 %} {{ transaction.debit_amount|floatformat:2 }} {% else %} - {% endif %} {% if transaction.credit_amount > 0 %} {{ transaction.credit_amount|floatformat:2 }} {% else %} - {% endif %} {{ transaction.balance|floatformat:2 }}

No transactions yet

{% if child_accounts %}

Child Accounts ({{ child_accounts|length }})

{% endif %}

Quick Stats

  • Journal Entries {{ usage_count }}
  • Child Accounts {{ child_accounts|length }}
  • Last Updated {{ account.updated_at|date:"M d, Y" }}
{% endblock %}