@name            setPrice ()

@author          Can Berkol

@since           1.0.0
@version         1.0.0

@use             $this->setModified()

@param           mixed $price

@return          object                $this
518671
public function setPrice($price) {
        if(!$this->setModified('price', $price)->isModified()) {
            return $this;
        }
		$this->price = $price;
		return $this;
    }
601745
public function setValue($value)
	{
		if ( $value == $this->getValue() ) {
			return;
		}

		$this->_values['value'] = (string) $value;

		$this->setModified();
	}
300347
public function setPrice($amount)
    {
        $tax    = $this->getTaxRate()  / 100;
        $taxAmount = $amount * $tax;

        $this->prices = [
            'pretax' => round($amount, 2),
            'tax'    => round($taxAmount, 2),
            'net'    => round($amount + $taxAmount, 2),
        ];

        return $this;
    }
241795
public function setUnitPrice(Money $unitPrice): PriceInterface
    {
        // @todo change type from int to string
        $this->unitPrice = (int) $unitPrice->getAmount();

        return $this;
    }
906164
public function setValue($value)
    {
        if (!isset($value)) {
            unset($this->value);
            return $this;
        }
        $this->value = (string) $value;
        return $this;
    }
1191451
public function setValue($value)
    {
        if ($value == $this->getAttribute('value')) {
            $this->check();
        } else {
            $this->uncheck();
        }
        return $this;
    }
348706
protected function setPrice(array &$data)
    {
        if (!empty($data['price']) && !empty($data['currency'])) {
            $data['price'] = $this->price->amount($data['price'], $data['currency']);
        }
    }
478870
public function setValue($value)
    {
        $this->_value = $value;
        $this->getInput()->setValue($value);
        return $this;
    }
564496
public function setPrice( MShop_Price_Item_Interface $price )
	{
		if ( $price === $this->_price ) { return; }

		$this->_price = $price;
		$this->setModified();
	}
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
906779
public function setCopperprice($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->copperprice !== $v) {
            $this->copperprice = $v;
            $this->modifiedColumns[MapTableMap::COL_COPPERPRICE] = true;
        }

        return $this;
    }
337997
public function setValue( $price )
	{
		if ( $price == $this->getValue() ) { return; }

		$this->_checkPrice( $price );

		$this->_values['value'] = $this->_formatNumber( $price );
		$this->setModified();
	}
988394
public function setValue($value)
    {
        if (!is_array($value)) {
            $value = [];
        }
        foreach ($value as $key => $value) {
            if (!$this->getElement($key)) {
                continue;
            }
            $this->getElement($key)->setValue($value);
        }

        return $this;
    }
447018
public function setValue($value = null)
    {
        if (is_callable($value)) {
            $value = call_user_func($value);
        }

        $value = $this->handleJsonType($value);

        $this->value = $value;

        return $this;
    }
604553
public function addPrice(\OxidEsales\Eshop\Core\Price $oPrice)
    {
        if ($this->isNettoMode()) {
            $this->add($oPrice->getNettoPrice());
        } else {
            $this->add($oPrice->getBruttoPrice());
        }
    }
966796
private function priceAdjuster($price) {
        // min,max, value
        $price_ranges = [
            [01, 29, 29],
            [30, 49, 49],
            [50, 79, 79],
            [80, 99, 99],
            [00, 00, 99],
        ];

        list($whole, $decimal) = explode('.', $price);

        foreach ($price_ranges as &$value) {
            if($decimal >= $value[0] && $decimal <= $value[1]) {
                $decimal = $value[2];
                break;
            }
        }

        $price = $whole.'.'.$decimal;

        return floatval($price);
    }
772197
public function setValue($value) {
        switch ($this->type) {
            case self::TYPE_BOOLEAN:
                $this->value = (bool) $value;
                break;
            case self::TYPE_STRING:
                $this->value = (string) $value;
                break;
        }
        return $this;
    }