I don't want to decrease stock qty when order is placed. I know this can be done in admin by setting decrease stock to NO. But I want to change the update stock logic, so I need to know where can I programmatically stop decreasing stock qty in code.
By programmatically, set an
observer to retain the quantity after placing the order success. Refer this link to use observer Which observer to use after success order on Magento 2?
Refer this file, It has the functionality to decrease quantity.