/**
  * determins weather a customer gets prices shown gross or net dependent on
  * customer's invoice address or class
  *
  * @return string returns "gross" or "net"
  * 
  * @author Roland Lehmann <*****@*****.**>,
  *         Sebastian Diel <*****@*****.**>
  * @since 15.11.2014
  */
 public static function Pricetype()
 {
     if (is_null(self::$priceType)) {
         $member = SilvercartCustomer::currentUser();
         $configObject = self::getConfig();
         $silvercartPluginResult = SilvercartPlugin::call($configObject, 'overwritePricetype', array());
         if (!empty($silvercartPluginResult)) {
             self::$priceType = $silvercartPluginResult;
         } elseif ($member) {
             foreach ($member->Groups() as $group) {
                 if (!empty($group->Pricetype) && $group->Pricetype != '---') {
                     self::$priceType = $group->Pricetype;
                     break;
                 }
             }
             if (is_null(self::$priceType)) {
                 self::$priceType = self::DefaultPriceType();
             }
         } else {
             self::$priceType = self::DefaultPriceType();
         }
     }
     return self::$priceType;
 }