- Preparing search index...
- The search index is not available
docs.hg.fi
Methods
Static findCartItemByProduct
Static findCartItemByProductId
Static getDiscountPercent
- getDiscountPercent(price: ProductPrice): number
-
Returns number
Static getDiscountTo
- getDiscountTo(price: ProductPrice, format?: string): string
-
Parameters
-
-
format: string = 'DD.MM.YYYY HH:mm'
Returns string
Static getItemSumWithoutVat
Static getTotalSumWithoutVat
- getTotalSumWithoutVat(items: readonly ShoppingCartItem[]): number
-
Returns number
Static getVatlessSumFromPrice
- getVatlessSumFromPrice(price: ProductPrice): number
-
Returns number
Static removeItemFromCart