• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvalue.php
  • Класс: BitrixSaleEntityPropertyValue
  • Вызов: EntityPropertyValue::hasPresetFotTradingPlatform
static function hasPresetFotTradingPlatform(Entity $entity): bool
{
	$tpList = static::extractTradingPlatformIdList($entity);

	if ($tpList)
	{
		$dbRes = InternalsOrderPropsRelationTable::getList([
			'filter' => [
				'@ENTITY_ID' => $tpList,
				'=ENTITY_TYPE' => OrderPropsRelationTable::ENTITY_TYPE_TRADING_PLATFORM
			],
			'limit' => 1
		]);

		return (bool)$dbRes->fetch();
	}

	return false;
}