protected function _onStatusChange() { if (!$this->active) { return TaxRule::deleteTaxRuleByIdTax($this->id); } return true; }