source/Application/Model/Discount.php
public function getPercentage($dPrice)
    {
        if ($this->getAddSumType() == 'abs' && $dPrice > 0) {
            return $this->getAddSum() / $dPrice * 100;
        } else {
            return $this->getAddSum();
        }
    }
public function getPercentage($dPrice)
    {
        if ($this->getAddSumType() == 'abs' && $dPrice > 0) {
            return $this->getAddSum() / $dPrice * 100;
        } else {
            return $this->getAddSum();
        }
    }
public function getPercentage ( $ dPrice ) { if ( $ this -> getAddSumType ( ) == 'abs' && $ dPrice > 0 ) { return $ this -> getAddSum ( ) / $ dPrice * 100 ; } else { return $ this -> getAddSum ( ) ; } }
Return discount percent

@param double $dPrice - price from which calculates discount

@return double
Return discount percent