public function newImportMinMax(Product $product, RestockEntry $restockEntry, $quantity) { $targetPrice = $this->getMinTargetPriceUSDByIdProduct($product->getItemCode()); $newQuantityMinMax = false; if (!$restockEntry->isManualRestock()) { $newQuantityMinMax = ceil($quantity / $product->getMcParts()) * $product->getMcParts() * $targetPrice; } return $newQuantityMinMax; }