{% extends "pos/base.html" %} {% block content %}

Challan #{{ challan.challan_no }}

Print Sheet / PDF {% if challan.status == "arrived" or challan.status == "closed" %} Arrival Confirm Arrival Sheet {% endif %} Recovery Back Edit
Date: {{ challan.challan_date|date:"d-m-Y" }}
Vehicle: {{ challan.vehicle_no|default:"-" }}
Driver: {{ challan.driver_name|default:"-" }}
Status: {{ challan.get_status_display }}
Route: {{ challan.from_city|default:"-" }} → {{ challan.to_city|default:"-" }}
Builties: {{ challan.total_builties }}
Qty: {{ challan.total_qty|floatformat:2 }}
Weight: {{ challan.total_weight|floatformat:2 }}
{% if challan.status == "loaded" or challan.status == "draft" %}
{% csrf_token %}
{% endif %} {% if challan.status == "dispatched" %}
{% csrf_token %}
{% endif %} {% if challan.status == "arrived" %}
{% csrf_token %}
{% endif %} {% if challan.status != "cancelled" %}
{% csrf_token %}
{% endif %}
{% for line in lines %} {% empty %} {% endfor %}
# Invoice Builty Customer Receiver Route Qty Weight Amount
{{ forloop.counter }} #{{ line.invoice_no }} {{ line.builty_no|default:"-" }} {{ line.customer_name }} {{ line.receiver_name|default:"-" }} {{ line.from_city|default:"-" }} → {{ line.to_city|default:"-" }} {{ line.qty|floatformat:2 }} {{ line.weight|floatformat:2 }} {{ line.total_amount|floatformat:2 }}
No builties in this challan.
{% endblock %}