{% extends "../base.html" %} {% load crispy_forms_tags %} {% load humanize %} {% block page_title %}Student Bills Management{% endblock %} {% block content %}

Student Bills Management

Manage and track student fees bills
Monitor totals, payments, and outstanding balances.
Total Bills
{{ total_bills }}
Active bills
Total Billed
UGX {{ total_amount|intcomma }}
Amount due
Total Paid
UGX {{ total_paid|intcomma }}
Amount received
Outstanding
UGX {{ total_outstanding|intcomma }}
Amount pending

Bill Status Breakdown

Paid Bills
{{ paid_bills }}
Unpaid Bills
{{ unpaid_bills }}
Overdue Bills
{{ overdue_bills }}

Filters

Student Bills {{ student_bills|length }} bills found

{% if student_bills %}
{% for bill in student_bills %} {% endfor %}
# Student Bill Date Due Date Class Academic Year Term Total Amount Amount Paid Balance Status Actions
{{ forloop.counter }} {{ bill.student.student_name }}
ID: {{ bill.student.display_student_id }}
{{ bill.bill_date|date:"M d, Y" }} {% if bill.due_date %} {{ bill.due_date|date:"M d, Y" }} {% else %} Not set {% endif %} {{ bill.academic_class.Class }} {{ bill.academic_class.academic_year }} {{ bill.academic_class.term }} UGX {{ bill.total_amount|intcomma }} UGX {{ bill.amount_paid|intcomma }} {% if bill.balance > 0 %} UGX {{ bill.balance|intcomma }} {% elif bill.balance < 0 %} CR UGX {{ bill.balance|slice:"1:"|intcomma }} {% else %} Paid {% endif %} {% if bill.status == 'Paid' %} Paid {% elif bill.status == 'Overdue' %} Overdue {% else %} Unpaid {% endif %}
{% if student_bills.has_other_pages %}
    {% if student_bills.has_previous %} {% endif %} {% for num in student_bills.paginator.page_range %} {% if student_bills.number == num %}
  • {{ num }}
  • {% elif num > student_bills.number|add:'-3' and num < student_bills.number|add:'3' %}
  • {{ num }}
  • {% endif %} {% endfor %} {% if student_bills.has_next %} {% endif %}
{% endif %} {% else %}

No Student Bills Found

Try adjusting your filters or create new bills.

Create New Bill
{% endif %}
{% endblock %}