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