CCrmReportManager::SetReportCurrencyID

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmReportManager
  4. SetReportCurrencyID
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_report_helper.php
  • Класс: \CCrmReportManager
  • Вызов: CCrmReportManager::SetReportCurrencyID
static function SetReportCurrencyID($currencyID)
{
	$currencyID = strval($currencyID);

	if(!isset($currencyID[0]))
	{
		$currencyID = CCrmCurrency::GetBaseCurrencyID();
	}

	if($currencyID === self::$REPORT_CURRENCY_ID)
	{
		return;
	}

	self::$REPORT_CURRENCY_ID = $currencyID;
	CUserOptions::SetOption('crm', 'report_currency_id', $currencyID);
}

Добавить комментарий