Example #1
0
 /**
  * Returns true if the tax is used in an order details
  *
  * @return bool
  */
 public function isUsed()
 {
     $db = JFactory::betDBo();
     $query = "SELECT " . $db->quoteName('tax_id') . " FROM " . $db->quoteName('#__jeproshop_order_detail_tax') . " WHERE " . $db->quoteName('tax_id') . " = " . (int) $this->tax_id;
     $db->setQuery($query);
     return $db->loadResult();
 }