• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/variationform.php
  • Класс: BitrixCatalogComponentVariationForm
  • Вызов: VariationForm::getCurrencyFieldValue
protected function getCurrencyFieldValue(array $field): string
{
	$currency = null;

	if ($field['priceTypeId'] === 'PURCHASING_PRICE')
	{
		$currency = $this->entity->getField('PURCHASING_CURRENCY');
	}
	else
	{
		$price = $this->entity
			->getPriceCollection()
			->findByGroupId($field['priceTypeId'])
		;
		if ($price)
		{
			$currency = $price->getCurrency();
		}
	}


	return $currency ?: CurrencyManager::getBaseCurrency();
}