Company::loadRequisite

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Company
  4. loadRequisite
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/company.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\Company
  • Вызов: Company::loadRequisite
private function loadRequisite(): void
{
	if ($this->requisiteLoaded)
	{
		return;
	}

	$this->requisite = EntityRequisite::getSingleInstance()->getList([
		'filter' => [
			'=ENTITY_TYPE_ID' => \CCrmOwnerType::Company,
			'=ENTITY_ID' => $this->company->getId(),
		]
	])->fetch();

	$this->requisiteLoaded = true;
}

Добавить комментарий