close Receipt
public final Unit closeReceipt(Integer discountValue, AmountOrPercent amountOrPercent, DiscountOrSurcharge type)
if discountValue id>0 send discount/surcharge and close automaticGrantedToReceipt
Parameters
discount Value
discountValue of discount/surcharge
amount Or Percent
set if discount is amount or percent
type
set discount or surcharge