I had implemented a "Event Subscriber" controller to change the stock value in the product variation. Stock is a field in product variation.
Depending upon the quantity in order items I am decreasing the value of stock by subscribing to Drupal 8 event order
$events['commerce_order.place.post_transition']. Similarly I increased stock value if he cancels the order using the event
If somebody revise the order quantity from Back-office that time, stock should be increased or decreased accordingly. How can we achieve that? Is there any event when order items is edited? we are currently decreasing stock when order is placed... how can we decrease/increase when somebody edit the order from backend manually?