VatRate
Table of Contents
Methods
- getPriceWithTax() : float
- Calculated price with vat from basket item fields.
- prepareTaxPrices() : array<string|int, mixed>
- Prepare tax prices for sale basket item (price saves without vat).
Methods
getPriceWithTax()
Calculated price with vat from basket item fields.
public
static getPriceWithTax(array<string|int, mixed> $basketFields) : float
Parameters
- $basketFields : array<string|int, mixed>
Return values
floatprepareTaxPrices()
Prepare tax prices for sale basket item (price saves without vat).
public
static prepareTaxPrices(array<string|int, mixed> $basketItems) : array<string|int, mixed>
Parameters
- $basketItems : array<string|int, mixed>
-
in format for
BasketItem