/**
  * @return float
  */
 function getValue()
 {
     if (isset($this->value)) {
         return $this->value;
     }
     if ($this->item_->getAttribute('price')) {
         $this->value = (double) $this->item_->getAttribute('price');
         return $this->value;
     } else {
         if ($this->item_->getAttribute('basePrice')) {
             $this->value = (double) $this->item_->getAttribute('basePrice');
             return $this->value;
         }
     }
     $qry = DBFactory::getDBQuery();
     $qry->execute("SELECT basePrice, price\n\t\t\t\t\tFROM kb3_invtypes\n\t\t\t\t\tLEFT JOIN kb3_item_price ON kb3_invtypes.typeID=kb3_item_price.typeID\n\t\t\t\t\tWHERE kb3_invtypes.typeID='" . $this->item_->getID() . "'");
     if ($row = $qry->getRow()) {
         if ($row['price']) {
             $this->value = (double) $row['price'];
         } else {
             $this->value = (double) $row['basePrice'];
         }
     } else {
         $this->value = 0;
     }
     return $this->value;
 }