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

{{ period.name }}

{{ period.get_period_type_display }} period from {{ period.start_date|date:"d M Y" }} to {{ period.end_date|date:"d M Y" }}

{% if period.status == 'open' %} Close Period {% else %} {% if perms.accounting.reopen_fiscal_period %} Reopen Period {% endif %} {% endif %}
{% if period.status == 'open' %}

This period is currently open for transactions

{% else %}

This period was closed on {{ period.closed_at|date:"d M Y H:i" }} by {{ period.closed_by.get_full_name|default:period.closed_by.username }}

{% endif %}

Total Entries

{{ entries_in_period }}

Posted Entries

{{ posted_entries }}

Draft Entries

{{ draft_entries }}

Period Information

Period Name
{{ period.name }}
Period Type
{{ period.get_period_type_display }}
Start Date
{{ period.start_date|date:"d M Y" }}
End Date
{{ period.end_date|date:"d M Y" }}
Status
{% if period.status == 'open' %} Open {% else %} Closed {% endif %}
{% if period.status == 'closed' %}
Closed By
{{ period.closed_by.get_full_name|default:period.closed_by.username }} on {{ period.closed_at|date:"d M Y H:i" }}
{% endif %}
{% if period.status == 'closed' and period.closing_balances %}

Closing Balances

Account balances as of {{ period.end_date|date:"d M Y" }} ({{ period.closing_balances|length }} accounts with balances)

{% for code, balance in period.closing_balances.items %} {% endfor %}
Account Code Account Name Balance
{{ code }} {{ balance.account_name }} KES {{ balance.balance|floatformat:2 }}
{% endif %} {% if period.opening_balances %}

Opening Balances

Account balances brought forward from previous period ({{ period.opening_balances|length }} accounts)

{% for code, balance in period.opening_balances.items %} {% endfor %}
Account Code Account Name Balance
{{ code }} {{ balance.account_name }} KES {{ balance.balance|floatformat:2 }}
{% endif %} {% if recent_entries %}

Recent Journal Entries

Last 10 journal entries in this period

{% for entry in recent_entries %} {% endfor %}
Reference Date Description Status Actions
{{ entry.reference_number }} {{ entry.transaction_date|date:"d M Y" }} {{ entry.description|truncatewords:10 }} {% if entry.status == 'draft' %} Draft {% elif entry.status == 'posted' %} Posted {% else %} Reversed {% endif %}
{% endif %}
{% endblock %}