{% extends 'base.html' %} {% block content %}

Assign Supplier - Order #{{ order.id }}

Order Summary

Customer: {{ order.customer.name }}
Order Date: {{ order.date|date_format }}
Weight: {{ order.weight_kg|kg }}
Price/kg: {{ order.price_per_kg|currency }}
Total Amount: {{ order.total_amount|currency }}
Status: ✅ Approved
{% if order.description %}
Order Requirements:
{{ order.description }}
{% endif %} {% if order.admin_notes %}
Admin Notes:
{{ order.admin_notes }}
{% endif %}

Customer Information

Name: {{ order.customer.name }}
Email: {{ order.customer.email }}
{% if order.customer.phone %}
Phone: {{ order.customer.phone }}
{% endif %}
{% if order.customer.address_line1 %}
Address:
{{ order.customer.address_line1 }} {% if order.customer.address_line2 %}
{{ order.customer.address_line2 }}{% endif %} {% if order.customer.city %}
{{ order.customer.city }}{% endif %} {% if order.customer.state %}, {{ order.customer.state }}{% endif %} {% if order.customer.postal_code %} {{ order.customer.postal_code }}{% endif %}
{% endif %}

Assign Supplier for Delivery

{{ form.hidden_tag() }}
{{ form.supplier_id(class="input") }} {% if form.supplier_id.errors %}
{{ form.supplier_id.errors[0] }}
{% endif %} Select the supplier who will handle the delivery of this order
{{ form.admin_notes(class="input", rows="3", placeholder="Any special instructions for the supplier, delivery requirements, quality standards, etc.") }} {% if form.admin_notes.errors %}
{{ form.admin_notes.errors[0] }}
{% endif %} These notes will be visible to the assigned supplier

🚚 Assignment Preview

What happens next:

  • Selected supplier will see this order in their dashboard
  • Supplier can view order details and customer information
  • Supplier will mark the order as delivered when completed
  • A sale record will be automatically created upon delivery
  • Customer ledger will be updated with the order amount
Cancel

Available Suppliers

The system will show all active suppliers. Choose the most suitable one based on:

{% endblock %}