• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_account.php
  • Класс: CVoxImplantAccount
  • Вызов: CVoxImplantAccount::GetBalanceFormatted
public function GetBalanceFormatted()
{
	$balance = $this->GetAccountBalance();
	$currency = $this->GetAccountCurrency();
	if($currency === 'RUR')
	{
		$currency = 'RUB';
	}

	if(!$currency)
		return '';

	if(BitrixMainLoader::includeModule('currency'))
	{
		return CCurrencyLang::CurrencyFormat($balance, $currency);
	}
	else
	{
		return $balance . ' ' . $currency;
	}
}