{% extends 'base.html' %} {% load static %} {% block title %}Record Payment — Rapha-Bethel BNPS{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Record Payment

All amounts in XAF (Central African CFA Franc)
Student
{% if locked_invoice %}{{ locked_invoice.student.get_full_name }}{% endif %}
Invoice #
{% if locked_invoice %}{{ locked_invoice.invoice_number }}{% endif %}
Type / Year
{% if locked_invoice %}{{ locked_invoice.get_invoice_type_display }} — {{ locked_invoice.academic_year }}{% endif %}
Due Date
{% if locked_invoice %}{{ locked_invoice.due_date|date:"d M Y" }}{% endif %}
Total
{% if locked_invoice %}{{ locked_invoice.total_amount|floatformat:0 }} XAF{% endif %}
Paid
{% if locked_invoice %}{{ locked_invoice.amount_paid|floatformat:0 }} XAF{% endif %}
Balance Due
{% if locked_invoice %}{{ locked_invoice.balance|floatformat:0 }} XAF{% endif %}
{% if locked_invoice %} Payment for Invoice {{ locked_invoice.invoice_number }} {% else %} New Payment {% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% if locked_invoice %} {# Coming from invoice detail — lock the invoice, show read-only display #} {% else %} {# Normal open selection #} {% if form.invoice.errors %}
{{ form.invoice.errors }}
{% endif %} {% endif %}
XAF
{% if form.amount.errors %}
{{ form.amount.errors }}
{% endif %}
{% if form.payment_method.errors %}
{{ form.payment_method.errors }}
{% endif %}
Cancel
{% endblock %} {% block extra_js %} {% endblock %}