예제 #1
0
 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;
 }