source/Application/Model/Discount.php
public function getAbsValue($dPrice, $dAmount = 1)
    {
        if ($this->oxdiscount__oxaddsumtype->value == '%') {
            return $dPrice * ($this->oxdiscount__oxaddsum->value / 100);
        } else {
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();

            return $this->oxdiscount__oxaddsum->value * $dAmount * $oCur->rate;
        }
    }
public function getAbsValue($dPrice, $dAmount = 1)
    {
        if ($this->oxdiscount__oxaddsumtype->value == '%') {
            return $dPrice * ($this->oxdiscount__oxaddsum->value / 100);
        } else {
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();

            return $this->oxdiscount__oxaddsum->value * $dAmount * $oCur->rate;
        }
    }
public function getAbsValue ( $ dPrice , $ dAmount = 1 ) { if ( $ this -> oxdiscount__oxaddsumtype -> value == '%' ) { return $ dPrice * ( $ this -> oxdiscount__oxaddsum -> value / 100 ) ; } else { $ oCur = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; return $ this -> oxdiscount__oxaddsum -> value * $ dAmount * $ oCur -> rate ; } }
Returns absolute discount value

@param float     $dPrice  item price
@param float|int $dAmount item amount, interpretted only when discount is absolute (default 1)

@return float
Returns absolute discount value