{% extends "pos/base.html" %} {% load static %} {% block title %}Delivery Proof #{{ delivery.t_id }}{% endblock %} {% block content %}
Delivery Proof #{{ delivery.t_id }}
{% if invoice %} Invoice #{{ invoice.invoice_no }} | Builty: {{ invoice.builty_no|default:"-" }} | Route: {{ invoice.from_city|default:"-" }} → {{ invoice.to_city|default:"-" }} {% else %} Invoice record not found {% endif %}
Back
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
Delivery Date
{{ delivery.delivery_date|date:"d-m-Y h:i A" }}
Delivery Hub
{{ delivery.delivery_city|default:"-" }}
Status
{% if delivery.status == "received" %} {{ delivery.get_status_display }} {% elif delivery.status == "partial" %} {{ delivery.get_status_display }} {% elif delivery.status == "damage" %} {{ delivery.get_status_display }} {% elif delivery.status == "shortage" %} {{ delivery.get_status_display }} {% else %} {{ delivery.get_status_display }} {% endif %}
Invoice Status
{% if invoice %} {{ invoice.get_flow_status_display }} {% else %} - {% endif %}

Received By
{{ delivery.received_by_name|default:"-" }}
Mobile
{{ delivery.received_by_mobile|default:"-" }}
CNIC
{{ delivery.received_by_cnic|default:"-" }}
{% if delivery.remarks %}
Remarks:
{{ delivery.remarks }}
{% endif %}
{% if invoice %}
Invoice Detail
Invoice No
#{{ invoice.invoice_no }}
Builty No
{{ invoice.builty_no|default:"-" }}
Customer
{{ invoice.customer_name|default:"-" }}
Receiver
{{ invoice.receiver_name|default:"-" }}
{{ invoice.receiver_mobile|default:"" }}
Payment Mode
{{ invoice.get_payment_mode_display }}
Total Amount
{{ invoice.total_amount|floatformat:2 }}
Received
{{ invoice.received_amount|floatformat:2 }}
Balance
{{ invoice.balance_amount|floatformat:2 }}
{% endif %}
Delivered Items
{% for line in lines %} {% empty %} {% endfor %}
# Item Booked Qty Received Qty Damage Qty Short Qty Damage / Short Remarks
{{ forloop.counter }} {{ line.product_name|default:"-" }} {{ line.booked_qty|floatformat:2 }} {{ line.received_qty|floatformat:2 }} {% if line.damaged_qty > 0 %} {{ line.damaged_qty|floatformat:2 }} {% else %} {{ line.damaged_qty|floatformat:2 }} {% endif %} {% if line.short_qty > 0 %} {{ line.short_qty|floatformat:2 }} {% else %} {{ line.short_qty|floatformat:2 }} {% endif %} {{ line.damage_remarks|default:"-" }}
Koi delivery item line nahi mili.
{% endblock %}