src/ShopBundle/objects/db/TShopArticle.class.php
public function GetVat()
    {
        $oVat = $this->GetFromInternalCache('ovat');
        if (is_null($oVat)) {
            $oVat = $this->getOwnVat();
            if (is_null($oVat)) {
                // try to fetch from article group
                $oArticleGroups = $this->GetArticleGroups();
                $oVat = $oArticleGroups->GetMaxVat();
            }

            if (is_null($oVat)) {
                // try to fetch from category
                $oCategories = $this->GetFieldShopCategoryList();
                $oVat = $oCategories->GetMaxVat();
            }

            if (is_null($oVat)) {
                // try to fetch from shop
                $oShopConfig = TdbShop::GetInstance();
                $oVat = $oShopConfig->GetVat();
            }
            $this->SetInternalCache('ovat', $oVat);
        }

        return $oVat;
    }
public function GetVat()
    {
        $oVat = $this->GetFromInternalCache('ovat');
        if (is_null($oVat)) {
            $oVat = $this->getOwnVat();
            if (is_null($oVat)) {
                // try to fetch from article group
                $oArticleGroups = $this->GetArticleGroups();
                $oVat = $oArticleGroups->GetMaxVat();
            }

            if (is_null($oVat)) {
                // try to fetch from category
                $oCategories = $this->GetFieldShopCategoryList();
                $oVat = $oCategories->GetMaxVat();
            }

            if (is_null($oVat)) {
                // try to fetch from shop
                $oShopConfig = TdbShop::GetInstance();
                $oVat = $oShopConfig->GetVat();
            }
            $this->SetInternalCache('ovat', $oVat);
        }

        return $oVat;
    }
public function GetVat ( ) { $ oVat = $ this -> GetFromInternalCache ( 'ovat' ) ; if ( is_null ( $ oVat ) ) { $ oVat = $ this -> getOwnVat ( ) ; if ( is_null ( $ oVat ) ) { // try to fetch from article group $ oArticleGroups = $ this -> GetArticleGroups ( ) ; $ oVat = $ oArticleGroups -> GetMaxVat ( ) ; } if ( is_null ( $ oVat ) ) { // try to fetch from category $ oCategories = $ this -> GetFieldShopCategoryList ( ) ; $ oVat = $ oCategories -> GetMaxVat ( ) ; } if ( is_null ( $ oVat ) ) { // try to fetch from shop $ oShopConfig = TdbShop :: GetInstance ( ) ; $ oVat = $ oShopConfig -> GetVat ( ) ; } $ this -> SetInternalCache ( 'ovat' , $ oVat ) ; } return $ oVat ; }
return the vat group of the article.

@return TdbShopVat
return the vat group of the article .