Checks if variant price is fixed or not ("from" price)

@return bool
764784
protected function _isFixedPrice()
    {
        $dPrice = $this->getDPrice();
        $aVariants = $this->getMdSubvariants();
        foreach ($aVariants as $oVariant) {
            $dVariantPrice = $oVariant->getDPrice();
            if (is_null($dPrice)) {
                $dPrice = $dVariantPrice;
            }
            if (!is_null($dVariantPrice) && $dVariantPrice != $dPrice) {
                return false;
            }
            if (!$oVariant->_isFixedPrice()) {
                return false;
            }
        }

        return true;
    }
791918
protected function isNewVariant()
    {
        $bIsNewVariant = false;
        if (!is_null($this->sRestriction) && !is_null($this->sRestrictionField) && '_id' == substr($this->sRestrictionField, -3)) {
            if ('variant_parent_id' == $this->sRestrictionField) {
                $bIsNewVariant = true;
            }
        }

        return $bIsNewVariant;
    }
1190699
public function isColumnsToRepeatAtLeftSet()
    {
        if (is_array($this->columnsToRepeatAtLeft)) {
            if ($this->columnsToRepeatAtLeft[0] != '' && $this->columnsToRepeatAtLeft[1] != '') {
                return true;
            }
        }

        return false;
    }
1134642
public static function validate($price)
    {
        if (
            (\filter_var($price, FILTER_VALIDATE_FLOAT) || \filter_var($price, FILTER_VALIDATE_INT))
            && $price >= 0
        ) {
            return $price;
        }

        return false;
    }
806078
public function isPaymentValid()
    {
        $isValid = $this->isPaymentActive();

        if ($isValid && !is_null($this->getPrice())) {
            $isValid = $this->checkPriceRange() && $this->checkMinOrderPrice();
        }

        $user = $this->getUser();
        if ($isValid && $user && $user->hasAccount()) {
            $isValid = $this->checkUserGroup();
        }

        if ($isValid && $user && $this->getCheckCountry()) {
            $isValid = $this->checkUserCountry();
        }

        return $isValid;
    }
933226
public function isSupported()
    {
        $sql = 'SHOW TABLES LIKE :table';

        $stat = $this->pdo->prepare($sql);
        $stat->bindValue(':table', $this->table);
        $stat->execute();

        return (bool) $stat->fetch(\PDO::FETCH_ASSOC);
    }
1157860
public static function price($value)
    {
        $bool = preg_match(self::$regularExpressions['price'], $value);

        if (!$bool) {
            return false;
        }

        return true;
    }
783218
private function hasPriceInDefaultCurrency($prices, $defaultCurrency)
    {
        foreach ($prices as $price) {
            if ($price->getCurrency()->getCode() === $defaultCurrency) {
                return true;
            }
        }

        return false;
    }
1149098
public function isColumnsToRepeatAtLeftSet() {
		if (is_array($this->_columnsToRepeatAtLeft)) {
			if ($this->_columnsToRepeatAtLeft[0] != '' && $this->_columnsToRepeatAtLeft[1] != '') {
				return true;
			}
		}

		return false;
	}
1252063
private function processPrices(ProductInterface $variant, array $variantData)
    {
        if (!isset($variantData['prices']) || !is_array($variantData['prices'])) {
            return;
        }

        $currentPrices = iterator_to_array($variant->getPrices());
        foreach ($variantData['prices'] as $price) {
            $matchingEntity = $this->retrievePriceByCurrency($currentPrices, $price['currency']['id']);

            // Create new price if no match was found.
            if (!$matchingEntity) {
                $this->productPriceManager->createNewProductPriceForCurrency(
                    $variant,
                    $price['price'],
                    0,
                    $price['currency']['id']
                );
            } else {
                // Otherwise just update price.
                $matchingEntity->setPrice($price['price']);
            }
        }

        // The following prices were not matched and therefore have to be deleted.
        foreach ($currentPrices as $price) {
            $this->entityManager->remove($price);
        }
    }
276580
public function isPriceViewModeNetto()
    {
        $blResult = (bool) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blShowNetPrice');
        $oUser = $this->getBasketUser();
        if ($oUser) {
            $blResult = $oUser->isPriceViewModeNetto();
        }

        return $blResult;
    }
354917
protected function validateEditPriceRule()
    {
        $this->setSubmitted('price_rule', null, false);
        $this->setSubmittedBool('status');
        $this->setSubmitted('update', $this->data_rule);

        $this->validateComponent('price_rule');

        return !$this->hasErrors();
    }
391501
public static function isValid($price)
    {
        //====================================================================//
        // Check Contents Available
        if (!is_array($price) && !($price instanceof ArrayObject)) {
            return false;
        }
        /** @var array|ArrayObject $price */
        if (!isset($price["base"])) {
            return false;
        }
        if (!isset($price["ht"]) || !isset($price["ttc"]) || !isset($price["vat"])) {
            return false;
        }
        if (!self::isValidAmount($price)) {
            return false;
        }
        if (!self::isValidCurrency($price)) {
            return false;
        }

        return true;
    }
523050
private function isValidSpecialPrice(SpecialPrice $specialPrice)
    {
        $startDate = $specialPrice->getStartDate();
        $endDate = $specialPrice->getEndDate();
        $now = new \DateTime();

        // Check if special price is stil valid.
        if (($now >= $startDate && $now <= $endDate) ||
            ($now >= $startDate && empty($endDate)) ||
            (empty($startDate) && empty($endDate))
        ) {
            return true;
        }

        return false;
    }
1305693
function correctSequenceValues()
    {
        if ( $this->isConnected() )
        {
            $rows = $this->arrayQuery( "SELECT pg_class.relname AS table, pg_attribute.attname AS column
                FROM pg_class,pg_attribute,pg_attrdef
                WHERE pg_attrdef.adsrc LIKE 'nextval(%'
                    AND pg_attrdef.adrelid=pg_attribute.attrelid
                    AND pg_attrdef.adnum=pg_attribute.attnum
                    AND pg_attribute.attrelid=pg_class.oid" );
            foreach ( $rows as $row )
            {
                $this->query( "SELECT setval('".$row['table'].'_'.$row['column']."_seq', max(".$row['column'].")) from ".$row['table'] );
            }
            return true;
        }
        return false;
    }
417354
private function isFixed ($name)
		{
			$row = ( new Query )->from(Yii::$app->authManager->itemTable)
				->select('fixed')
				->where([ 'name' => $name ])
				->one(Yii::$app->db);

			return $row[ 'fixed' ];
		}
126104
public function getDefaultPrice()
    {
        $prices = $this->getPrices();
        foreach ($prices as $price) {
            if ($price->from == 1) {
                return $price->value;
            }
        }
    }