cancel
Showing results for 
Search instead for 
Did you mean: 

setting order from cancelled to pending_payment, blocks the admin from putting it again to cancelled

setting order from cancelled to pending_payment, blocks the admin from putting it again to cancelled

I am putting an order state from cancelled to pending_payment with

 

$orderColl->setStatus(\Magento\Sales\Model\Order:Smiley FrustratedTATE_PENDING_PAYMENT);
$orderColl->save();

 

But somehow I cannot put this order anymore to cancelled via the admin.

 

I guess that the state to pending was not completely done, and magento somewhere still sees that this order's original state cancelled.

 

How to do this properly?