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

Student Bill Details

Review billed items, payments, and student balance at a glance.
Keep records consistent and up to date.
{% if student_bill.student.photo %} Student Photo {% else %}
{{ student_bill.student.student_name|slice:":1"|upper }}
{% endif %}

{{ student_bill.student.student_name }}

Student ID: {{ student_bill.student.display_student_id }} Class: {{ student_bill.student.current_class.code }}
UGX {{ student_bill.total_amount|intcomma }}
Total Billed
UGX {{ student_bill.amount_paid|intcomma }}
Amount Paid
UGX {{ balance|floatformat:2|intcomma }}
Outstanding
{% if payment_status == "CR" %}
CR (Credit)
{% elif payment_status == "DR" %}
DR (Debit)
{% else %}
Balanced
{% endif %}
Payment Progress {{ amount_paid_percentage|floatformat:1 }}% Paid {% if payment_status == "CR" %}(CR){% elif payment_status == "DR" %}(DR){% endif %}
{% if payment_status == "CR" %} Credit Balance {% elif balance <= 0 %} Paid in Full {% elif balance > 0 and balance < student_bill.total_amount %} Partial Payment {% else %} No Payment {% endif %}
{% if can_manage_student_bill %} {% endif %}
Bill Details
{% if can_manage_student_bill %}
{% endif %}
{% for item in student_bill.items.all %} {% endfor %}
# Item Description Amount
{{ forloop.counter }} {{ item.bill_item.item_name }}
{{ item.bill_item.get_category_display }}
{{ item.description }} UGX {{ item.amount|intcomma }}
Total Amount UGX {{ student_bill.total_amount|intcomma }}
{% if can_manage_student_bill %}
Print official receipts from each payment row. Use statement print for the full account history.
{% endif %}
{% for payment in student_bill.payments.all %} {% empty %} {% endfor %} {% if student_bill.payments.all %} {% endif %}
Date Method Reference Amount Recorded By Receipt
{{ payment.payment_date|date:"M d, Y" }}
{{ payment.payment_date|time:"H:i" }}
{{ payment.payment_method }} {{ payment.reference_no }} UGX {{ payment.amount|intcomma }} {{ payment.recorded_by }} Receipt

No payments recorded yet
TOTAL PAID UGX {{ student_bill.amount_paid|intcomma }}
{% endblock %}