Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AdaptVerifyStockToNegativeMinQtyPlugin.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
14 {
23  {
24  if ($stockItem->getBackorders() !== StockItemInterface::BACKORDERS_NO
25  && $stockItem->getMinQty() < 0
26  && $stockItem->getQty() < $stockItem->getMinQty()
27  ) {
28  return false;
29  }
30  return $result;
31  }
32 }