• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/vat.php
  • Класс: BitrixCatalogControllerVat
  • Вызов: Vat::deleteAction
public function deleteAction(int $id): ?bool
{
	$existsResult = $this->exists($id);
	if (!$existsResult->isSuccess())
	{
		$this->addErrors($existsResult->getErrors());

		return null;
	}

	$deleteResult = CCatalogVat::Delete($id);
	if (!$deleteResult)
	{
		$this->addError(new Error('Error deleting VAT'));

		return null;
	}

	return true;
}