{% extends "base.html" %} {% block title %}Order #{{ order['OrderID'] }} - Northwind Traders{% endblock %} {% block content %}
← Back to Orders
Edit Order
Order Information
Order ID:{{ order['OrderID'] }}
Customer:{{ order['CustomerName'] }}
Employee:{{ order['EmployeeName'] }}
Order Date:{{ order['OrderDate'] }}
Shipping Information
Ship Name:{{ order['ShipName'] or '-' }}
Address:{{ order['ShipAddress'] or '-' }}
City:{{ order['ShipCity'] or '-' }}
Region:{{ order['ShipRegion'] or '-' }}
Postal Code:{{ order['ShipPostalCode'] or '-' }}
Country:{{ order['ShipCountry'] or '-' }}
Shipper:{{ order['Shipper'] or '-' }}
Order Items
{{ items|length }} items
{% if items %}
{% for item in items %} {% endfor %}
Product Unit Price Qty Discount Total
{{ item['ProductName'] }} ${{ "%.2f"|format(item['UnitPrice']) }} {{ item['Quantity'] }} {{ (item['Discount'] * 100)|int }}% ${{ "%.2f"|format(item['UnitPrice'] * item['Quantity'] * (1 - item['Discount'])) }}
{% else %}

No items in this order

{% endif %}
Subtotal: ${{ "%.2f"|format(subtotal) }}

Total: ${{ "%.2f"|format(subtotal) }}
{% endblock %}