• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitybankdetail.php
  • Класс: Bitrix\Crm\EntityBankDetail
  • Вызов: EntityBankDetail::getCountryIdByOwnerEntity
public function getCountryIdByOwnerEntity($entityTypeId, $entityId)
{
	$countryId = 0;
	$entityId = (int)$entityId;

	if ($entityTypeId === CCrmOwnerType::Requisite && $entityId > 0)
	{
		$requisite = EntityRequisite::getSingleInstance();
		$countryId = $requisite->getCountryIdByRequisiteId($entityId);
	}

	return $countryId;
}