Exemplo n.º 1
0
 public function delete($pk = null)
 {
     if ($pk) {
         $taxHelper = new taxHelper();
         // Check whether zone is allowed to delete or not.  If not the enqueue error message accordingly.
         $count_id = $taxHelper->isAllowedToDelTaxProfile($pk);
         if ($count_id === true) {
             $this->load($pk);
             $result = parent::delete($pk);
             if ($result) {
             }
             return $result;
         }
     }
     return false;
 }