{% extends 'auth/dashboard.html' %} {% block content %}
{% if is_admin_manage_page %} Review and process direct-purchase orders placed from the internal input shop. {% else %} Track direct-purchase orders and fulfillment updates. {% endif %}
| Order | Farmer | Placed By | {% if is_admin_manage_page %}Assigned Officer | {% endif %}Delivery | Payment | Status | Date | Action |
|---|---|---|---|---|---|---|---|---|
|
{{ order.order_number }}
{{ order.items.count }} item{{ order.items.count|pluralize }}
KES {{ order.total_amount }}
|
{{ order.farmer.get_full_name }}
{% if order.farmer.phone_number %}{{ order.farmer.phone_number }} {% endif %}
|
{% if order.placed_by %}
{{ order.placed_by.get_full_name }}
{{ order.placed_by.get_type_display }}
{% else %}
Unknown
{% endif %}
|
{% if is_admin_manage_page %}
{% if order.assigned_field_officer %}
{{ order.assigned_field_officer.get_full_name }}
Field Officer
{% endif %}
|
{% endif %}
{% if order.pickup_station %}
{{ order.pickup_station.name }}{% if order.pickup_station.location %} - {{ order.pickup_station.location }}{% endif %}
Pickup station
{% else %}
{{ order.delivery_location|default:"Delivery location not set" }}
{% endif %}
{{ order.delivery_contact_name|default:order.farmer.get_full_name }}
|
{{ order.get_payment_status_display }}
Paid: KES {{ order.amount_paid }} / {{ order.total_amount }}
|
{{ order.get_status_display }} |
{{ order.created_at|date:"Y-m-d" }}
{{ order.created_at|date:"H:i" }}
|
{% if request.user.type == 'FARMER' and order.payment_status != 'PAID' %} Complete Payment {% else %} View / Track {% endif %} |
Showing {{ page_obj.start_index }}-{{ page_obj.end_index }} of {{ page_obj.paginator.count }} orders
No input shop orders found
Try changing filters or place a direct purchase from the shop.
Open Input Shop