closeInvoice

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

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

Parameters

discountValue

discountValue of discount/surcharge

amountOrPercent

set if discount is amount or percent

type

set discount or surcharge