• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/terminal/orderproperty.php
  • Класс: Bitrix\Crm\Terminal\OrderProperty
  • Вызов: OrderProperty::getTerminalPhoneValue
static function getTerminalPhoneValue(Crm\Order\Order $order): ?string
{
	$collection = $order->getPropertyCollection();
	$propertyValues = $collection->getItemsByOrderPropertyCode(self::TERMINAL_PHONE);

	$propertyValues = array_filter(
		$propertyValues,
		static function($propertyValue)
		{
			return empty($propertyValue->getField('ORDER_PROPS_ID'));
		}
	);

	return empty($propertyValues) ? null : current($propertyValues)->getValue();
}