From 3f2b1689306022c7f441f6e0995deef78c9878b3 Mon Sep 17 00:00:00 2001 From: Jeanmarcos Juarez Date: Sun, 12 Jul 2026 21:06:53 -0400 Subject: [PATCH] fix(inventory-indexer): keep disabled-source reservations in the salable index --- .../Indexer/Stock/PrepareReservationsIndexData.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php b/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php index 7990c145960..caa9f91ab92 100644 --- a/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php +++ b/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php @@ -106,13 +106,7 @@ private function getSourceAggregatedSelect(int $stockId): Select 'stock_source_link.source_code = reservation.source_code', [] ) - ->joinInner( - ['source' => $this->resourceConnection->getTableName('inventory_source')], - 'source.source_code = stock_source_link.source_code', - [] - ) - ->where('stock_source_link.stock_id = ?', $stockId) - ->where('source.enabled = ?', 1); + ->where('stock_source_link.stock_id = ?', $stockId); $unionSelect = $connection->select()->union( [$stockScopedSelect, $sourceScopedSelect],