{% extends "pos/base.html" %} {% load static %} {% block title %}Bulk Delivery Result - Challan #{{ run.run_no }}{% endblock %} {% block content %}
{% csrf_token %}
Bulk Delivery Result - Challan #{{ run.run_no }}
Date: {{ run.run_date|date:"d-m-Y" }} | Person: {{ run.delivery_person_name|default:"-" }} | Hub: {{ run.from_city|default:"-" }}
Back
Note: Jis invoice ka result save karna hai us ko select karein. To Pay invoice agar normal Delivered hai to full balance collect karna zaroori hai. Agar payment nahi mili to Not Delivered → Payment Not Received select karein.
Pending Assigned Invoices
Multiple invoices ka result ek sath save karein
{% if rows %}
{% for row in rows %} {% with line=row.line invoice=row.invoice items=row.items %}
Receiver
{{ line.receiver_name|default:"-" }}
{{ line.receiver_mobile|default:"" }}
Route
{{ line.from_city|default:"-" }} → {{ line.to_city|default:"-" }}
Payment
{% if line.payment_mode == "paid" %} Paid {% elif line.payment_mode == "to_pay" %} To Pay {% elif line.payment_mode == "credit" %} Credit {% else %} {{ line.payment_mode|default:"-" }} {% endif %}
Balance
{% if invoice %} {{ invoice.balance_amount|floatformat:2 }} {% else %} - {% endif %}
{% for item in items %} {% empty %} {% endfor %}
# Item Booked Received Damage Short Damage / Short Remarks
{{ forloop.counter }} {{ item.product_name|default:"-" }} {{ item.qty|floatformat:2 }}
No item lines.
{% endwith %} {% endfor %}
{% else %}
Is delivery challan mein koi pending invoice nahi hai.
{% endif %}
{% endblock %} {% block javascripts %} {{ block.super }} {% endblock %}