• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/value/money.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\Value\Money
  • Вызов: Money::formatUsingCrmCurrency
protected function formatUsingCrmCurrency(array $options): string
{
	if(isset($options['WITH_ZEROS']) && $options['WITH_ZEROS'] === true)
	{
		$this->disableZeros();
	}
	else
	{
		$this->enableZeros();
	}
	$formatString = '';
	if(isset($options['NO_SIGN']) && $options['NO_SIGN'] === true)
	{
		$formatString = '#';
	}
	$result = \CCrmCurrency::MoneyToString($this->value, $options['CURRENCY_ID'], $formatString);
	$this->enableZeros();

	return $result;
}