Change a class in the refund observer to use the module's own SourceDeductionService instead of the native one.
This causes refunds to not change stock status in cataloginventory_stock_item, cataloginventory_stock_status and inventory_source_item if the product goes from "out of stock" to "in stock" following a refund.
Instead of using the vendor/ampersand/magento2-disable-stock-reservation/src/Model/SourceDeductionService/PatchedSourceDeductionService.php class, it used the vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php class.
Change a class in the refund observer to use the module's own SourceDeductionService instead of the native one. This causes refunds to not change stock status in cataloginventory_stock_item, cataloginventory_stock_status and inventory_source_item if the product goes from "out of stock" to "in stock" following a refund.
Instead of using the
vendor/ampersand/magento2-disable-stock-reservation/src/Model/SourceDeductionService/PatchedSourceDeductionService.php
class, it used thevendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php
class.