src/ShopBundle/objects/db/TShopDiscount.class.php
public function GetValue()
    {
        $dValue = $this->fieldValue;
        $oBasket = TShopBasket::GetInstance();
        $dBasketValueApplicableForDiscount = $oBasket->GetBasketSumForDiscount($this);
        $dValue = $this->GetValueForBasketValue($dBasketValueApplicableForDiscount);

        return $dValue;
    }
public function GetValue()
    {
        $dValue = $this->fieldValue;
        $oBasket = TShopBasket::GetInstance();
        $dBasketValueApplicableForDiscount = $oBasket->GetBasketSumForDiscount($this);
        $dValue = $this->GetValueForBasketValue($dBasketValueApplicableForDiscount);

        return $dValue;
    }
public function GetValue ( ) { $ dValue = $ this -> fieldValue ; $ oBasket = TShopBasket :: GetInstance ( ) ; $ dBasketValueApplicableForDiscount = $ oBasket -> GetBasketSumForDiscount ( $ this ) ; $ dValue = $ this -> GetValueForBasketValue ( $ dBasketValueApplicableForDiscount ) ; return $ dValue ; }
Returns the value of the discount - takes the current basket and user into consideration.

@return float
Returns the value of the discount - takes the current basket and user into consideration .