I have got order collection with the following code:
$orders = $objectManager->create('Magento\Sales\Model\Order')->getCollection();
Which is working fine. Problem is that it returns all types of orders including 'processing', 'cancelled' etc. I don't want the cancelled order in this collection.
I don't know how to exclude cancelled order in the above code.
Hope somebody helps.