• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/update/product/priceaccount.php
  • Класс: Bitrix\Crm\Update\Product\PriceAccount
  • Вызов: PriceAccount::getEntityRow
protected function getEntityRow(array $row): array
{
	$ownerType = $row['OWNER_TYPE'];
	$parameters = $this->getEntityRowParameters($ownerType, $row['OWNER_ID']);

	$result = null;
	switch ($ownerType)
	{
		case \CCrmOwnerTypeAbbr::Deal:
			$result = Crm\DealTable::getRow($parameters);
			break;
		case \CCrmOwnerTypeAbbr::Lead:
			$result = Crm\LeadTable::getRow($parameters);
			break;
		case \CCrmOwnerTypeAbbr::Quote:
			$result = Crm\QuoteTable::getRow($parameters);
			break;
	}

	return $result ?? [];
}