• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/history/entity/invoicestatushistory.php
  • Класс: Bitrix\Crm\History\Entity\InvoiceStatusHistoryTable
  • Вызов: InvoiceStatusHistoryTable::deleteByOwner
static function deleteByOwner($ownerID)
{
	if(!is_int($ownerID))
	{
		$ownerID = (int)$ownerID;
	}

	if($ownerID <= 0)
	{
		throw new Main\ArgumentException('Owner ID must be greater than zero.', 'ownerID');
	}

	Main\Application::getConnection()->queryExecute("DELETE FROM b_crm_inv_status_history WHERE OWNER_ID = {$ownerID}");
}