addReceiptItem

public final Unit addReceiptItem(String name, TaxRateSymbol taxRate, Array<String> additionalInformation, Integer quantity, Integer MP, String unit, Integer price, Integer value, DiscountSurchargeInfo discountInfo)

add item to automaticGrantedToReceipt

Parameters

name

item name

taxRate

tax rate symbol without 'all'

additionalInformation

information about automaticGrantedToReceipt item, printed under name, could be empty, max. 3 lines

quantity

quantity

MP

number of digits after decimal point in quantity

unit

unit name (max. 4 characters)

price

price for 1 item in currency subunit

value

value in currency subunit

discountInfo

information about discount, can be null


public final Unit addReceiptItem(ReceiptItem receiptItem, DiscountSurchargeInfo discountInfo)

add item to automaticGrantedToReceipt

Parameters

receiptItem

item to add

discountInfo

information about discount/surcharge