Share via


FiscalPrinter.PrintRecSubtotalAdjustVoid Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Voids a preceding subtotal adjustment on the station defined by the FiscalReceiptStation property.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Sub PrintRecSubtotalAdjustVoid ( _
    adjustmentType As FiscalAdjustment, _
    amount As Decimal _
)
public abstract void PrintRecSubtotalAdjustVoid (
    FiscalAdjustment adjustmentType,
    decimal amount
)
public:
virtual void PrintRecSubtotalAdjustVoid (
    FiscalAdjustment adjustmentType, 
    Decimal amount
) abstract
public abstract void PrintRecSubtotalAdjustVoid (
    FiscalAdjustment adjustmentType, 
    Decimal amount
)
public abstract function PrintRecSubtotalAdjustVoid (
    adjustmentType : FiscalAdjustment, 
    amount : decimal
)

Parameters

  • adjustmentType
    Type of adjustment.
  • amount
    Amount of the adjustment (discount or surcharge).

Remarks

This discount or surcharge adjustment can be either a fixed currency amount or a percentage amount relating to the current receipt subtotal.

Fixed amount void discounts are only supported if CapSubAmountAdjustment is true. Percentage void discounts are only supported if the property CapSubPercentAdjustment is true.

If CapPostPreLine is true, an additional application-specific line defined by the PreLine property will be printed. After printing this line, the PreLine property is reset to an empty string.

This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

PrintRecSubtotalAdjustVoid may cause a PosControlException to be thrown with one of the following values:

Value

Description

Busy

Cannot perform while output is in progress. (Can be returned only if AsyncMode is false.)

Illegal

One of the following errors occurred:

  • The printer does not support fixed amount discounts (see the CapSubAmountAdjustment property).

  • The printer does not support percentage discounts (see the CapSubPercentAdjustment property).

  • The adjustmentType parameter is invalid.

ExtendedErrorWrongState

The printer is not in the FiscalReceipt state.

ExtendedErrorCoverOpen

The printer cover is open. (Can be returned only if AsyncMode is false.)

ExtendedErrorJournalEmpty

The journal station is out of paper. (Can be returned only if AsyncMode is false.)

ExtendedErrorReceiptEmpty

The receipt station is out of paper. (Can be returned only if AsyncMode is false.)

ExtendedErrorSlipEmpty

The slip station was specified, but a form is not inserted. (Applies only if AsyncMode is false.)

ExtendedErrorBadItemAmount

The discount amount is invalid. (Can be returned only if AsyncMode is false.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
FiscalPrinter.BeginFiscalReceipt Method
FiscalPrinter.EndFiscalReceipt Method
AmountDecimalPlaces
FiscalReceiptStation
PreLine