Метод getPricePublicPrecision
Сигнатура метода
public static function getPricePublicPrecision(?string $currencyId = null): int
Возвращает:
int
Описание
Returns DECIMALS for public-facing price formatting/rounding. When $currencyId is provided and non-empty — returns DECIMALS of that currency (e.g. JPY → 0, RUB → 2). Otherwise falls back to DECIMALS of the base currency. If the `currency` module is unavailable, returns {@see self::PRICE_PUBLIC_PRECISION}.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$currencyId
|
?string
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/Accounting.php
Расположение метода в файле
Строки
257–271