We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09eb76b commit 7580620Copy full SHA for 7580620
app/code/Magento/CatalogInventoryGraphQl/Model/Resolver/OnlyXLeftInStockResolver.php
@@ -87,7 +87,7 @@ private function getOnlyXLeftQty(ProductInterface $product): ?float
87
$stockLeft = $stockCurrentQty - $stockItem->getMinQty();
88
89
if ($stockLeft > 0 && $stockLeft <= $thresholdQty) {
90
- return (float)$stockLeft;
+ return (float)$stockCurrentQty;
91
}
92
93
return null;
0 commit comments