См. определение в файле costpricecalculator.php строка 18
◆ __construct()
◆ calculate()
calculate |
( |
float | $quantity, |
|
|
int | $storeId, |
|
|
string | $currency = null ) |
Calculate purchasing price by quantity. Is able to calculate in certain store and get result in required currency.
- Аргументы
-
float | $quantity | |
int | $storeId | |
string | null | $currency | |
- Возвращает
- float
- Исключения
-
Bitrix\Main\LoaderException
См. определение в файле costpricecalculator.php строка 109
◆ getMethod()
Return current purchasing price calculation method.
- Возвращает
- string
См. определение в файле costpricecalculator.php строка 47
◆ setMethod()
static setMethod |
( |
string | $method | ) |
|
|
static |
Set current purchasing price calculation method value.
- Аргументы
-
- Возвращает
- void
- Исключения
-
Bitrix\Main\ArgumentOutOfRangeException
См. определение в файле costpricecalculator.php строка 61
◆ $isCurrencyModuleIncluded
bool $isCurrencyModuleIncluded |
|
protected |
◆ $productFields
array $productFields = null |
|
protected |
◆ METHOD_AVERAGE
const METHOD_AVERAGE = 'average' |
◆ METHOD_FIFO
const METHOD_FIFO = 'fifo' |