PriceFormatter

class PriceFormatter(project: Project)

A price formatter for formatting prices using the provided currency information

Constructors

Link copied to clipboard
constructor(project: Project)

Functions

Link copied to clipboard
fun format(product: Product, price: Int): String

Format a price of a Product.

fun format(price: Int, allowZeroPrice: Boolean = true): String

Format a price

fun format(product: Product, discountedPrice: Boolean = true, scannedCode: ScannedCode? = null): String

Format a price of a Product or a ScannedCode if the ScannedCode is containing price information.