...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/statistics/entity/companyactivitystatusstatistics.php
- Класс: Bitrix\Crm\Statistics\Entity\CompanyActivityStatusStatisticsTable
- Вызов: CompanyActivityStatusStatisticsTable::synchronize
static function synchronize($ownerID, array $data) { if(!is_int($ownerID)) { $ownerID = (int)$ownerID; } if($ownerID <= 0) { throw new Main\ArgumentException('Owner ID must be greater than zero.', 'ownerID'); } $userID = isset($data['RESPONSIBLE_ID']) ? (int)$data['RESPONSIBLE_ID'] : 0; Main\Application::getConnection()->queryExecute( "UPDATE b_crm_company_act_sts_stat SET RESPONSIBLE_ID = {$userID} WHERE OWNER_ID = {$ownerID}" ); }