{% extends 'base.html' %} {% load humanize %} {% block title %}{{ expense.title }} - HAVEN GRAZURI ADVANCE{% endblock %} {% block content %}
Back to Expenses
{% if expense.status == 'pending' %} {% if user.role == 'admin' or user.role == 'team_leader' %} Approve Reject {% endif %} ✏️ Edit {% endif %} {% if user.role == 'admin' or user.role == 'team_leader' %} 🗑️ Delete {% endif %}

{{ expense.title }}

{% if expense.status == 'pending' %} Pending {% elif expense.status == 'approved' %} Approved {% elif expense.status == 'rejected' %} Rejected {% endif %}

Basic Information

Category
{{ expense.get_category_display }}
Expense Date
{{ expense.expense_date|date:"d M Y" }}
Created
{{ expense.created_at|date:"d M Y H:i" }}
{% if expense.description %}
Description
{{ expense.description }}
{% endif %}

Financial Details

Amount
KES {{ expense.amount|floatformat:2|intcomma }}
Payment Method
{{ expense.get_payment_method_display }}
Paid To
{{ expense.paid_to }}
{% if expense.reference_number %}
Reference Number
{{ expense.reference_number }}
{% endif %}

Relationships

Branch
{{ expense.branch.name }}
Created By
{{ expense.staff.get_full_name }}
{% if expense.loan %} {% endif %}
{% if expense.status != 'pending' %}

Approval Information

Status
{{ expense.get_status_display }}
{% if expense.approved_by %}
Processed By
{{ expense.approved_by.get_full_name }}
{% endif %} {% if expense.approved_at %}
Processed At
{{ expense.approved_at|date:"d M Y H:i" }}
{% endif %} {% if expense.rejection_reason %}
Rejection Reason
{{ expense.rejection_reason }}
{% endif %}
{% endif %} {% if expense.has_receipt %} {% endif %} {% if expense.notes %}

Additional Notes

{{ expense.notes }}

{% endif %}
{% endblock %}