diff --git a/orders/views.py b/orders/views.py index 1302cf3..07411a4 100644 --- a/orders/views.py +++ b/orders/views.py @@ -868,7 +868,7 @@ class OrderTrackView(APIView): live_data = { 'status': 'success', 'data': { - 'awb_number': awb_number or 'Cancelled', + 'awb_number': awb_number or ('Cancelled' if raw_status in ['cancelled', 'canceled'] else 'Pending Dispatch'), 'current_status': display_status, 'carrier': 'Shadowfax Express' if awb_number else 'Awaiting Dispatch', 'tracking_history': tracking_history