PriceHelper
Table of Contents
Methods
-
computePriceWithDiscount()
: float|int
-
computePriceWithVat()
: float|int
-
convertByLocalization()
: string|null
computePriceWithDiscount()
public
static computePriceWithDiscount(float $price, float $discount) : float|int
Parameters
-
$price
: float
-
-
$discount
: float
-
computePriceWithVat()
public
static computePriceWithVat(float $price[, float $vat = 0.0 ]) : float|int
Parameters
-
$price
: float
-
-
$vat
: float
= 0.0
-
convertByLocalization()
public
static convertByLocalization(float|null $price, object|null $currency[, string|null $defaultCurrencyText = null ][, bool $withCurrency = true ][, string|null $unit = null ][, object|null $localization = null ]) : string|null
Parameters
-
$price
: float|null
-
-
$currency
: object|null
-
-
$defaultCurrencyText
: string|null
= null
-
-
$withCurrency
: bool
= true
-
-
$unit
: string|null
= null
-
-
$localization
: object|null
= null
-
Return values
string|null