printReceipt: Print receipt

Description Usage Arguments

Description

Function prints the final cost table (data.frame) and a cumulative cost including all discounts.

Usage

1
printReceipt(costTab, decimal = TRUE)

Arguments

costTab

a data.frame with a list of purchased items. Requires a column called 'Cost'

decimal

if TRUE then function will format cost value to have 2 decimal places.


komisarczyks/CheckoutComponent documentation built on May 20, 2019, 12:55 p.m.