format

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

Format a price


fun format(product: Product, price: Int): String

Format a price of a Product.

Display's in units for example gram's if a Product is using conversion units.


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.

Display's in units for example gram's if a Product is using conversion units.