format
Format a price
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.