• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/cashbox.php
  • Класс: BitrixSaleCashboxCashbox
  • Вызов: Cashbox::getValueFromSettings
public function getValueFromSettings($name, $code)
{
	$map = $this->fields['SETTINGS'];
	if (isset($map[$name]))
	{
		if (is_array($map[$name]))
		{
			if (isset($map[$name][$code]))
				return $map[$name][$code];

			return null;
		}

		return $map[$name];
	}

	$settings = static::getSettings($this->getField('KKM_ID'));

	return $settings[$name]['ITEMS'][$code]['VALUE'] ?? null;
}