Deal::loadCompanyFieldValue

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Deal
  4. loadCompanyFieldValue
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/bizproc/document/valuecollection/deal.php
  • Класс: Bitrix\Crm\Integration\BizProc\Document\ValueCollection\Deal
  • Вызов: Deal::loadCompanyFieldValue
protected function loadCompanyFieldValue($fieldId): void
{
	if ($this->companyDocument === null)
	{
		$this->loadEntityValues();
		if ($this->document['COMPANY_ID'])
		{
			$this->companyDocument = \CCrmDocumentCompany::GetDocument('COMPANY_' . $this->document['COMPANY_ID']);
		}
	}

	if ($this->companyDocument)
	{
		$companyFieldId = substr($fieldId, strlen('COMPANY.'));
		$this->document[$fieldId] = $this->companyDocument[$companyFieldId];
	}
}

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