{% extends "pos/base.html" %} {% load static %} {% block title %}Delivery Person Detail{% endblock %} {% block heading %}Delivery Person Detail{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
Delivery Person Detail - {{ person.name }}
T#{{ person.t_id }} {% if person.mobile %} | {{ person.mobile }}{% endif %}
Name
{{ person.name|default:"-" }}
Mobile
{{ person.mobile|default:"-" }}
Phone
{{ person.phone|default:"-" }}
Status
{{ person.status|default:"-" }}
Address
{{ person.address|default:"-" }}
Filtered Orders
{{ start|date:"Y-m-d" }} → {{ end|date:"Y-m-d" }}
Filtered Orders
{{ filtered_calc.orders }}
Date/filter based
Filtered Total
Rs {{ filtered_calc.total|floatformat:0 }}
Total bill amount
Filtered Received
Rs {{ filtered_calc.received|floatformat:0 }}
Bank/cash received
Filtered Balance
Rs {{ filtered_calc.balance|floatformat:0 }}
Total - received
Full Calculation
Pending, unpaid and filter-based calculations.
Section Orders Subtotal Discount Charges Tax Total Received Balance
Pending/Open Orders {{ pending_calc.orders }} Rs {{ pending_calc.subtotal|floatformat:0 }} Rs {{ pending_calc.discount|floatformat:0 }} Rs {{ pending_calc.charges|floatformat:0 }} Rs {{ pending_calc.tax|floatformat:0 }} Rs {{ pending_calc.total|floatformat:0 }} Rs {{ pending_calc.received|floatformat:0 }} Rs {{ pending_calc.balance|floatformat:0 }}
Unpaid / Due Orders {{ unpaid_calc.orders }} Rs {{ unpaid_calc.subtotal|floatformat:0 }} Rs {{ unpaid_calc.discount|floatformat:0 }} Rs {{ unpaid_calc.charges|floatformat:0 }} Rs {{ unpaid_calc.tax|floatformat:0 }} Rs {{ unpaid_calc.total|floatformat:0 }} Rs {{ unpaid_calc.received|floatformat:0 }} Rs {{ unpaid_calc.balance|floatformat:0 }}
Filtered Orders {{ filtered_calc.orders }} Rs {{ filtered_calc.subtotal|floatformat:0 }} Rs {{ filtered_calc.discount|floatformat:0 }} Rs {{ filtered_calc.charges|floatformat:0 }} Rs {{ filtered_calc.tax|floatformat:0 }} Rs {{ filtered_calc.total|floatformat:0 }} Rs {{ filtered_calc.received|floatformat:0 }} Rs {{ filtered_calc.balance|floatformat:0 }}
Pending Orders
All pending orders assigned to {{ person.name }}.
{% for r in pending_rows %} {% empty %} {% endfor %}
Order Date / Time Customer Phone Address Total Received Balance Status Action
#{{ r.order_no }} {{ r.created_at|date:"Y-m-d h:i A" }} {{ r.customer_name|default:r.customer_title|default:"-" }} {{ r.customer_phone|default:"-" }} {{ r.customer_address|default:"-" }} Rs {{ r.grand_total|floatformat:0 }} Rs {{ r.received|floatformat:0 }} Rs {{ r.balance|floatformat:0 }} {{ r.status }} View
No pending orders found.
Pending Total Rs {{ pending_calc.total|floatformat:0 }} Rs {{ pending_calc.received|floatformat:0 }} Rs {{ pending_calc.balance|floatformat:0 }}
Unpaid / Due Orders
Orders where balance is greater than zero.
{% for r in unpaid_rows %} {% empty %} {% endfor %}
Order Date / Time Customer Phone Address Status Total Received Balance Action
#{{ r.order_no }} {{ r.created_at|date:"Y-m-d h:i A" }} {{ r.customer_name|default:r.customer_title|default:"-" }} {{ r.customer_phone|default:"-" }} {{ r.customer_address|default:"-" }} {{ r.status|default:"-" }} Rs {{ r.grand_total|floatformat:0 }} Rs {{ r.received|floatformat:0 }} Rs {{ r.balance|floatformat:0 }} View
No unpaid orders found.
Unpaid Total Rs {{ unpaid_calc.total|floatformat:0 }} Rs {{ unpaid_calc.received|floatformat:0 }} Rs {{ unpaid_calc.balance|floatformat:0 }}
All Orders - Filter Based
Date, status, payment and search filters apply here.
{% for r in rows %} {% empty %} {% endfor %}
Order Date / Time Customer Phone Address Status Payment Subtotal Discount Tax Total Received Balance Action
#{{ r.order_no }} {{ r.created_at|date:"Y-m-d h:i A" }} {{ r.customer_name|default:r.customer_title|default:"-" }} {{ r.customer_phone|default:"-" }} {{ r.customer_address|default:"-" }} {{ r.status|default:"-" }} {% if r.payment_status == "Paid" %} {% elif r.payment_status == "Partial" %} Partial {% else %} No Payment {% endif %} Rs {{ r.subtotal|floatformat:0 }} Rs {{ r.discount|floatformat:0 }} Rs {{ r.tax|floatformat:0 }} Rs {{ r.grand_total|floatformat:0 }} Rs {{ r.received|floatformat:0 }} Rs {{ r.balance|floatformat:0 }} View
No filtered orders found.
Filtered Total Rs {{ filtered_calc.subtotal|floatformat:0 }} Rs {{ filtered_calc.discount|floatformat:0 }} Rs {{ filtered_calc.tax|floatformat:0 }} Rs {{ filtered_calc.total|floatformat:0 }} Rs {{ filtered_calc.received|floatformat:0 }} Rs {{ filtered_calc.balance|floatformat:0 }}
{% endblock %}