• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/services/automatic.php
  • Класс: BitrixSaleDeliveryServicesAutomatic
  • Вызов: Automatic::isProfileCompatible
public function isProfileCompatible($profileId, $config, Shipment $shipment)
{
	$compatibilityFunc = $this->getCompability();

	if($compatibilityFunc === false)
		return true;

	$res = $this->getCompatibleProfiles($this->sid.':'.$profileId, $compatibilityFunc, $config, $shipment);
	return is_array($res) && in_array($profileId, $res);
}