source/Application/Model/Article.php
protected function buildAmountPriceList()
    {
        if ($this->getAmountPriceList() === null) {
            /** @var \OxidEsales\Eshop\Application\Model\AmountPriceList $oAmPriceList */
            $oAmPriceList = oxNew(\OxidEsales\Eshop\Application\Model\AmountPriceList::class);
            $this->setAmountPriceList($oAmPriceList);

            if (!$this->skipDiscounts()) {
                //collecting assigned to article amount-price list
                $oAmPriceList->load($this);

                // prepare abs prices if currently having percentages
                $oBasePrice = $this->_getGroupPrice();
                foreach ($oAmPriceList as $oAmPrice) {
                    if ($oAmPrice->oxprice2article__oxaddperc->value) {
                        $oAmPrice->oxprice2article__oxaddabs = new \OxidEsales\Eshop\Core\Field(
                            \OxidEsales\Eshop\Core\Price::percent($oBasePrice, 100 - $oAmPrice->oxprice2article__oxaddperc->value),
                            \OxidEsales\Eshop\Core\Field::T_RAW
                        );
                    }
                }
            }

            $this->setAmountPriceList($oAmPriceList);
        }

        return $this->_oAmountPriceList;
    }
protected function buildAmountPriceList()
    {
        if ($this->getAmountPriceList() === null) {
            /** @var \OxidEsales\Eshop\Application\Model\AmountPriceList $oAmPriceList */
            $oAmPriceList = oxNew(\OxidEsales\Eshop\Application\Model\AmountPriceList::class);
            $this->setAmountPriceList($oAmPriceList);

            if (!$this->skipDiscounts()) {
                //collecting assigned to article amount-price list
                $oAmPriceList->load($this);

                // prepare abs prices if currently having percentages
                $oBasePrice = $this->_getGroupPrice();
                foreach ($oAmPriceList as $oAmPrice) {
                    if ($oAmPrice->oxprice2article__oxaddperc->value) {
                        $oAmPrice->oxprice2article__oxaddabs = new \OxidEsales\Eshop\Core\Field(
                            \OxidEsales\Eshop\Core\Price::percent($oBasePrice, 100 - $oAmPrice->oxprice2article__oxaddperc->value),
                            \OxidEsales\Eshop\Core\Field::T_RAW
                        );
                    }
                }
            }

            $this->setAmountPriceList($oAmPriceList);
        }

        return $this->_oAmountPriceList;
    }
protected function buildAmountPriceList ( ) { if ( $ this -> getAmountPriceList ( ) === null ) { /** @var \OxidEsales\Eshop\Application\Model\AmountPriceList $oAmPriceList */ $ oAmPriceList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ AmountPriceList :: class ) ; $ this -> setAmountPriceList ( $ oAmPriceList ) ; if ( ! $ this -> skipDiscounts ( ) ) { //collecting assigned to article amount-price list $ oAmPriceList -> load ( $ this ) ; // prepare abs prices if currently having percentages $ oBasePrice = $ this -> _getGroupPrice ( ) ; foreach ( $ oAmPriceList as $ oAmPrice ) { if ( $ oAmPrice -> oxprice2article__oxaddperc -> value ) { $ oAmPrice -> oxprice2article__oxaddabs = new \ OxidEsales \ Eshop \ Core \ Field ( \ OxidEsales \ Eshop \ Core \ Price :: percent ( $ oBasePrice , 100 - $ oAmPrice -> oxprice2article__oxaddperc -> value ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } } } $ this -> setAmountPriceList ( $ oAmPriceList ) ; } return $ this -> _oAmountPriceList ; }
Collecting assigned to article amount-price list.

@return \OxidEsales\Eshop\Application\Model\AmountPriceList
Collecting assigned to article amount - price list .