{% extends "base.html" %} {% load humanize %} {% block page_title %}Fees History — {{ student.student_name }}{% endblock page_title %} {% block content %}

Student Fees History

{{ student.student_name }}
{{ student.student_name }}
Student ID: {{ student.display_student_id }}
Class: {{ student.current_class.name }}
Print Receipt Back to Fees Status
Lifetime Billed
UGX {{ lifetime_billed|intcomma }}
{{ bill_count }} bill{{ bill_count|pluralize }}
Lifetime Paid
UGX {{ lifetime_paid|intcomma }}
{{ lifetime_progress|floatformat:0 }}% overall
{% if lifetime_outstanding < 0 %}
Credit
UGX {{ lifetime_outstanding_abs|intcomma }}
Overpayment
{% else %}
Outstanding
UGX {{ lifetime_outstanding|intcomma }}
Pending balance
{% endif %}
Payment Progress
{{ lifetime_progress|floatformat:1 }}%
Overall collection
Overall Payment Progress {{ lifetime_progress|floatformat:1 }}%
{% if years_data %} {% for year_key, year_info in years_data.items %}
Academic Year {{ year_info.year.academic_year }}
Billed: UGX {{ year_info.year_total|intcomma }} Paid: UGX {{ year_info.year_paid|intcomma }} {% if year_info.year_outstanding > 0 %} Owed: UGX {{ year_info.year_outstanding|intcomma }} {% elif year_info.year_outstanding < 0 %} Credit: UGX {{ year_info.year_outstanding_abs|intcomma }} {% endif %}
{% for bd in year_info.bills %}
{{ bd.term }} — {{ bd.academic_class }}
Total: UGX {{ bd.total_amount|intcomma }} Paid: UGX {{ bd.amount_paid|intcomma }} {% if bd.balance_label == "DR" %} Balance: DR {{ bd.balance|intcomma }} {% elif bd.balance_label == "CR" %} Credit: CR {{ bd.balance|intcomma }} {% else %} Balance: UGX 0 {% endif %}
{% if bd.payment_status == "Paid" %} Paid {% elif bd.payment_status == "Overpaid" %} Overpaid {% elif bd.payment_status == "Unpaid" %} Unpaid {% elif bd.payment_status == "Overdue" %} Overdue {% elif bd.payment_status == "Partial" %} Partial {% else %} No Bill {% endif %} {% if bd.bill %} {% endif %} {% if bd.total_amount > 0 %}
{{ bd.progress|floatformat:0 }}%
{% endif %}
Bill Items / Charges
{% for item in bd.items %} {% empty %} {% endfor %} {% if bd.items %} {% endif %}
# Item Category Description Amount
{{ forloop.counter }} {{ item.bill_item.item_name }} {{ item.bill_item.get_category_display }} {{ item.description }} UGX {{ item.amount|intcomma }}
No charge items on this bill
Total UGX {{ bd.total_amount|intcomma }}
Payment History
{% for payment in bd.payments %} {% empty %} {% endfor %} {% if bd.payments %} {% endif %}
Date Method Reference Amount Recorded By
{{ payment.payment_date|date:"M d, Y" }} {{ payment.payment_method }} {{ payment.reference_no }} UGX {{ payment.amount|intcomma }} {{ payment.recorded_by }}
No payments recorded
Total Paid UGX {{ bd.amount_paid|intcomma }}
{% endfor %}
{% endfor %} {% else %}
{% endif %}
{% endblock %}