{% extends "pos/base.html" %} {% block title %}Payment Collection{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}

Payment Collection

Pending & overdue installments — click Collect to receive payment
All Deals
{% if not q %} Showing active deals with pending installments {% else %} Search results for: {{ q }} ({{ results|length }} found) {% endif %}
{% if results %} {% with overdue_count=0 %}
{% for r in results %}{% if r.days_overdue > 0 %}✔{% endif %}{% endfor %}
Overdue
{{ results|length }}
Active Deals Shown
{% endwith %} {% endif %}
{% if q %}Search Results{% else %}Pending Installments{% endif %} {{ results|length }}
{% if results %}
{% for r in results %} {% with deal=r.deal cust=r.customer slot=r.next_slot %} {% endwith %} {% endfor %}
Customer Deal # Plan / Duration Next Due Due Date Status Total Pending Action
{{ cust.name|default:"—" }}
{% if cust.mobile %}{{ cust.mobile }}{% endif %}
#{{ deal.installment_no }}
{% if deal.plan %}{{ deal.plan.plan_name }}{% else %}Custom{% endif %}
{{ deal.duration_months }} months
{% if slot %} Rs. {{ slot.due_amount|floatformat:0 }} {% else %} — {% endif %} {% if slot %}
{{ slot.due_date }}
{% if r.days_overdue > 0 %} {{ r.days_overdue }} days overdue {% elif r.days_until == 0 %} Due today {% elif r.days_until <= 5 %} {{ r.days_until }} days left {% else %} {{ r.days_until }} days left {% endif %} {% else %} — {% endif %}
{% if slot %} {{ slot.status }} {% endif %} Rs. {{ r.summary.total_pending|floatformat:0 }} Collect
{% else %}
{% if q %}

No active deals found for {{ q }}.

Clear Search {% else %}

All caught up! No pending installments at this time.

{% endif %}
{% endif %}
{% endblock %}