public function getTaxClassRates() { $taxRates = explode(',', $this->taxClassRates); $taxes = array(); foreach ($taxRates as $tr) { if ($tr) { $taxrate = TaxRate::getByID($tr); if ($taxrate) { $taxes[] = $taxrate; } } } return $taxes; }
public function delete($trID) { StoreTaxRate::getByID($trID)->delete(); $this->redirect('/dashboard/store/settings/tax/removed'); }