addDiscountToSubtotal

public final Unit addDiscountToSubtotal(Integer discountValue, AmountOrPercent type, TaxRateSymbol taxRate, String description)

send discount to already printed automaticGrantedToPosition

Parameters

discountValue

discount value in currency subunit

type

set if discount is amount or percent

description

description to discount

normalOrCorrection

set normal discount or correction

taxRate

tax rate to grant discount