{% extends 'base.html' %} {% load static humanize %} {% block content %}
Expenses
Add Expense Export
Reset
{% for expense in expenses %} {% empty %} {% endfor %}
Reference Date Category Amount Status Submitted By Actions
{{ expense.reference }} {{ expense.expense_date|date:"M d, Y" }} {{ expense.category.name|default:"N/A" }} KSh {{ expense.amount|floatformat:2|intcomma }} {% if expense.status == 'approved' %} {% elif expense.status == 'rejected' %} {% elif expense.status == 'paid' %} {% elif expense.status == 'draft' %} {% else %} {% endif %} {{ expense.get_status_display }} {{ expense.created_by.get_full_name|default:expense.created_by.email }}
{% if expense.can_edit %} {% endif %} {% if expense.can_delete %} {% endif %} {% if expense.can_approve %} {% endif %} {% if expense.can_reject %} {% endif %} {% if expense.can_pay %} {% endif %}
No expenses found.
Total: KSh {{ total_amount|floatformat:2|intcomma }}
{% if is_paginated %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}