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

Order Details #{{ order.order_no }}

Edit Order
Back to Orders Edit Order

Customer Information

Customer Name
{{ order.customer_name }}
{% if order.customer_phone %}
Phone Number
{{ order.customer_phone }}
{% endif %} {% if order.customer_address %}
Address
{{ order.customer_address }}
{% endif %}

Order Summary

Order Number
{{ order.order_no }}
Order Date
{{ order.order_date }}
Total Items
{{ items_count }} Items
Total Amount
Rs. {{ "{:,.0f}".format(order.total_amount|safe_float) }}

Order Items ({{ items_count }})

{% for item in items %}
#{{ loop.index }}
Size
{% if item.size and 'mm' in item.size and 'Yard' in item.size %} {{ item.size }} {% else %} {{ item.size }} {% endif %}
{{ item.colour }} {{ item.brand }} {{ item.micron }}mic
Quantity
{{ item.qty }}
{% if item.required_pieces > 0 %} {{ item.cartons }} Ctn Ɨ {{ item.pieces_per_carton }} = {{ item.required_pieces }} Pcs {% endif %}
Micron
{{ item.micron }}
Colour
{{ item.colour }}
Brand & Variety
{{ item.brand }}
{{ item.variety }}
Amount
Rs. {{ "{:,.0f}".format(item.amount|safe_float) }}
{% if item.unit_price > 0 %} @ Rs. {{ "{:.2f}".format(item.unit_price|safe_float) }} {% endif %}
Status
{% if item.is_closed %} CLOSED {{ item.closed_date }} {% else %} ACTIVE {% endif %}
Actions
{% if item.is_closed %} {% else %} {% endif %}
{% if item.printed_matter and item.printed_matter.strip() %}
Printed Matter
{{ item.printed_matter }}
{% endif %} {% if item.notes and item.notes.strip() %}
Notes
{{ item.notes }}
{% endif %}
{% endfor %}
Total Amount: Rs. {{ "{:,.0f}".format(order.total_amount|safe_float) }}
{% endblock %}