Use the WooCommerce $order->get_order_number(); function.