Схема
protected mixed
validateDelete (
)
Аргументы
| Аргумент |
Возможный тип |
Описание |
|
У метода нет аргументов
|
Описание
Метод пока еще не документирован.
Исходный код
if (!$this->user->hasPermission('modify', 'localisation/tax_rate')) {
$this->error['warning'] = $this->language->get('error_permission');
}
$this->load->model('localisation/tax_class');
foreach ($this->request->post['selected'] as $tax_rate_id) {
$tax_rule_total = $this->model_localisation_tax_class->getTotalTaxRulesByTaxRateId($tax_rate_id);
if ($tax_rule_total) {
$this->error['warning'] = sprintf($this->language->get('error_tax_rule'), $tax_rule_total);
}
}
if (!$this->error) {
return true;
} else {
return false;
}