objects::fetchEntity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. objects
  4. fetchEntity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entity/paymentdocumentsrepository.php
  • Класс: Bitrix\Crm\Entity\objects
  • Вызов: objects::fetchEntity
private function fetchEntity(): bool
{
	$factory = Crm\Service\Container::getInstance()->getFactory($this->ownerTypeId);
	if ($factory && $factory->isLinkWithProductsEnabled())
	{
		$item = $factory->getItem($this->ownerId);
		if ($item)
		{
			$this->entityAmount = $item->getOpportunity();
			$this->totalSum = $this->entityAmount;
			$this->currencyId = $item->getCurrencyId();
			$this->currencyFormat = \CCurrencyLang::GetFormatDescription($this->currencyId);
			return true;
		}
	}

	return false;
}

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