Manage customer order processing from placement to completion.
This skill outlines the workflow for managing customer orders from placement to completion (AW-02).
Orders transition through the following states: Pending -> Completed (or cancelled). Admins manage this flow to ensure timely fulfillment.
/admin/orders or click "Pending Orders" in the admin dashboard.orders = Order.query.filter_by(status='pending')completedjoinedload to efficiently fetch Order.items and OrderItem.product.app.py (Order routes: admin_orders, update_order_status)templates/admin_orders.html (Order management list)templates/orders.html (Customer-facing view)