{% extends 'auth/dashboard.html' %} {% load static %} {% load humanize %} {% block title %}Group Contract #{{ contract.id }} - Bomabest Agriservices{% endblock %} {% block content %}
Created: {{ contract.created_at|date:"Y-m-d H:i" }} {% if contract.created_by %} • By: {{ contract.created_by.get_full_name }}{% endif %}
{{ contract.group.name }}
{{ contract.group.registration_number }}
{{ contract.group.location }}
Type: {{ contract.get_type_display }}
Payment Term: {{ contract.get_payment_term_display }}
Months: {{ contract.months_for_payment }}
Grace (days): {{ contract.grace_period }}
Deposit: KES {{ contract.deposit_amount|floatformat:0|intcomma }}
Approved: {{ contract.is_approved|yesno:"Yes,No" }}
{% if contract.approved_by %}By: {{ contract.approved_by.get_full_name }}
{% endif %} {% if contract.approved_at %}At: {{ contract.approved_at|date:"Y-m-d H:i" }}
{% endif %}| Package | Qty | Unit Price | Line Total |
|---|---|---|---|
| {{ item.input }} | {{ item.quantity }} | KES {{ item.unit_price|floatformat:0|intcomma }} | KES {{ item.total_price|floatformat:0|intcomma }} |
| No inputs found. | |||
| # | Due Date | Amount Due | Paid | Balance | Progress | Status | Action |
|---|---|---|---|---|---|---|---|
| #{{ s.installment_number }} | {{ s.due_date|date:"M d, Y" }} | KES {{ due|floatformat:0|intcomma }} | KES {{ paid|floatformat:0|intcomma }} | KES {{ bal|floatformat:0|intcomma }} |
{% if due > 0 %}
{% widthratio paid due 100 as pct %}
{% else %}
{% widthratio 0 1 100 as pct %}
{% endif %}
{{ pct }}%
|
{{ s.get_status_display }} | {% if s.status != 'PAID' %} {% if is_signatory or is_admin %} Pay {% else %} — {% endif %} {% else %} Paid ✅ {% endif %} |
| No payment schedule generated yet. | |||||||