closeReceipt

public final Unit closeReceipt(Integer discountValue, AmountOrPercent amountOrPercent, DiscountOrSurcharge type)

if discountValue id>0 send discount/surcharge and close automaticGrantedToReceipt

Parameters

discountValue

discountValue of discount/surcharge

amountOrPercent

set if discount is amount or percent

type

set discount or surcharge