src/ShopBundle/objects/TShopBasket/TShopBasketCore.class.php
protected function RecalculateNoneSponsoredVouchers()
    {
        if (!is_null($this->GetActiveVouchers())) {
            $this->dCostNoneSponsoredVouchers = 0;
            $this->GetActiveVouchers()->RemoveInvalidVouchers(MTShopBasketCore::MSG_CONSUMER_NAME, $this);

            $this->dCostNoneSponsoredVouchers = $this->GetActiveVouchers()->GetVoucherValue(false);
            if ($this->dCostNoneSponsoredVouchers > $this->dCostArticlesTotalAfterDiscounts) {
                $this->dCostNoneSponsoredVouchers = $this->dCostArticlesTotalAfterDiscounts;
            }
        } else {
            $this->dCostNoneSponsoredVouchers = 0;
        }
    }
protected function RecalculateNoneSponsoredVouchers()
    {
        if (!is_null($this->GetActiveVouchers())) {
            $this->dCostNoneSponsoredVouchers = 0;
            $this->GetActiveVouchers()->RemoveInvalidVouchers(MTShopBasketCore::MSG_CONSUMER_NAME, $this);

            $this->dCostNoneSponsoredVouchers = $this->GetActiveVouchers()->GetVoucherValue(false);
            if ($this->dCostNoneSponsoredVouchers > $this->dCostArticlesTotalAfterDiscounts) {
                $this->dCostNoneSponsoredVouchers = $this->dCostArticlesTotalAfterDiscounts;
            }
        } else {
            $this->dCostNoneSponsoredVouchers = 0;
        }
    }
protected function RecalculateNoneSponsoredVouchers ( ) { if ( ! is_null ( $ this -> GetActiveVouchers ( ) ) ) { $ this -> dCostNoneSponsoredVouchers = 0 ; $ this -> GetActiveVouchers ( ) -> RemoveInvalidVouchers ( MTShopBasketCore :: MSG_CONSUMER_NAME , $ this ) ; $ this -> dCostNoneSponsoredVouchers = $ this -> GetActiveVouchers ( ) -> GetVoucherValue ( false ) ; if ( $ this -> dCostNoneSponsoredVouchers > $ this -> dCostArticlesTotalAfterDiscounts ) { $ this -> dCostNoneSponsoredVouchers = $ this -> dCostArticlesTotalAfterDiscounts ; } } else { $ this -> dCostNoneSponsoredVouchers = 0 ; } }
calculates the value of NONE sponsored vouchers. The article prices for each item in the
basket affected by a voucher is reduced by the value calculated for the item.
calculates the value of NONE sponsored vouchers . The article prices for each item in the basket affected by a voucher is reduced by the value calculated for the item .