{% extends "pos/base.html" %} {% load static %} {% block title %}Challan Recovery #{{ challan.challan_no }}{% endblock %} {% block content %}
Challan #{{ challan.challan_no }} {{ challan.get_status_display }}
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
Date: {{ challan.challan_date|date:"M d, Y" }}
Route: {{ challan.from_city|default:"-" }} → {{ challan.to_city|default:"-" }}
Vehicle: {{ challan.vehicle_no|default:"-" }}
Invoices: {{ summary.invoice_count }}
Driver: {{ challan.driver_name|default:"-" }} {{ challan.driver_mobile|default:"" }}
Remarks: {{ challan.remarks|default:"-" }}
Total Due
{{ summary.total_due|floatformat:2 }}
Recoverable: {{ summary.recoverable_due|floatformat:2 }}
Transit: {{ summary.transit_due|floatformat:2 }}
Received
0.00
Back to Challan
{% csrf_token %}
Settlement — Challan Invoice Recovery
Sirf selected invoices ki recovery save hogi.
{% for row in rows %} {% with line=row.line inv=row.invoice %} {% endwith %} {% empty %} {% endfor %}
# Customer Invoice Builty Route Recovery Status Mode Invoice Amount Already Received Credit to Ledger Discount Credit Received Bank Due Remarks
{{ forloop.counter }} {% if row.is_recoverable %} {% else %} - {% endif %} {{ line.customer_name|default:"-" }} {% if inv %}
ID: {{ inv.customer_t_id }} {% endif %}
#{{ line.invoice_no }} {{ line.builty_no|default:"-" }} Segment: {{ row.segment_route }}
Final: {{ row.final_route }}
{% if row.is_recoverable %} {{ row.recovery_label }} {% elif row.is_transit %} {{ row.recovery_label }} {% else %} {{ row.recovery_label }} {% endif %}
{{ row.recovery_note }}
{% if inv %} {{ inv.get_payment_mode_display }} {% else %} {{ line.payment_mode|default:"-" }} {% endif %} {{ row.amount|floatformat:2 }} {{ row.received|floatformat:2 }} {{ row.due|floatformat:2 }} {{ row.due|floatformat:2 }}
Is challan mein koi invoice nahi mili.
Totals: {{ summary.total_amount|floatformat:2 }} {{ summary.total_received|floatformat:2 }} {{ summary.total_due|floatformat:2 }} 0.00 0.00 {{ summary.total_due|floatformat:2 }}
{% endblock %} {% block javascripts %} {{ block.super }} {% endblock %}