/**
  * Delete existing currency
  *
  * @param void
  * @return null
  */
 function delete()
 {
     if ($this->active_tax_rate->isNew()) {
         $this->httpError(HTTP_ERR_NOT_FOUND);
     }
     // if
     if (!$this->active_tax_rate->canDelete($this->logged_user)) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     if ($this->request->isSubmitted()) {
         $delete = $this->active_tax_rate->delete();
         if ($delete && !is_error($delete)) {
             flash_success('Tax rate ":name" has been deleted', array('name' => $this->active_tax_rate->getName()));
         } else {
             flash_error('Failed to delete ":name" tax rate', array('name' => $this->active_tax_rate->getName()));
         }
         // if
         $this->redirectTo('admin_tax_rates');
     } else {
         $this->httpError(HTTP_ERR_BAD_REQUEST);
     }
     // if
 }