• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/Terminal/DtoItemDataConverter.php
  • Класс: BitrixCrmMobileTerminalDtoItemDataConverter
  • Вызов: DtoItemDataConverter::getCompanyId
static function getCompanyId(Payment $payment): ?int
{
	$contactCompanyCollection = $payment->getOrder()->getContactCompanyCollection();
	if (is_null($contactCompanyCollection))
	{
		return null;
	}

	$company = $contactCompanyCollection->getCompany();
	if (is_null($company))
	{
		return null;
	}

	return $company->getField('ENTITY_ID');
}