Class: DefaultReceiptFormatter

timapi.DefaultReceiptFormatter()

Default implementation of receipt formatter. Subclass and overwrite formatReceipts().

Overview

Methods-Overview

Constructor

new DefaultReceiptFormatter()

Methods

formatReceipt(Terminal, ReceiptItems) → {Array.<timapi.Receipt>}

Format receipt using the provided fields. Result is a list of timapi.Receipt using "\n" as line breaks.
Parameters:
Name Type Description
Terminal timapi.Terminal to retrieve certain field values from.
ReceiptItems timapi.ReceiptItems used to create receipt.
Returns:
List of created receipts.

Type: Array.<timapi.Receipt>