• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Display/Field/MoneyField.php
  • Класс: Bitrix\Crm\Service\Display\Field\MoneyField
  • Вызов: MoneyField::getFormattedValueForMobile
protected function getFormattedValueForMobile($fieldValue, int $itemId, Options $displayOptions): array
{
	if ($this->isMultiple())
	{
		$result = [];

		if (!is_array($fieldValue))
		{
			$fieldValue = [$fieldValue];
		}

		foreach ($fieldValue as $value)
		{
			$result[] = $this->getValue($value);
		}
	}
	else
	{
		$result = $this->getValue($fieldValue);
	}

	return [
		'value' => $result,
		'config' => [
			'defaultCurrency' => \CCrmCurrency::GetBaseCurrencyID(),
		],
	];
}