Share via


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

3/2/2014

Specifies a list of adjustments to be voided.

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

Syntax

'Declaration
Public MustOverride Sub PrintRecPackageAdjustVoid ( _
    adjustmentType As FiscalAdjustmentType, _
    vatAdjustments As IEnumerable(Of VatInfo) _
)
public abstract void PrintRecPackageAdjustVoid (
    FiscalAdjustmentType adjustmentType,
    IEnumerable<VatInfo> vatAdjustments
)
public:
virtual void PrintRecPackageAdjustVoid (
    FiscalAdjustmentType adjustmentType, 
    IEnumerable<VatInfo>^ vatAdjustments
) abstract
public abstract void PrintRecPackageAdjustVoid (
    FiscalAdjustmentType adjustmentType, 
    IEnumerable<VatInfo> vatAdjustments
)
public abstract function PrintRecPackageAdjustVoid (
    adjustmentType : FiscalAdjustmentType, 
    vatAdjustments : IEnumerable<VatInfo>
)

Parameters

  • adjustmentType
    Type of adjustment.
  • vatAdjustments
    Structure containing a list of adjustment(s) to be voided for different VAT(s).

Remarks

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

Fixed amount void adjustments are only supported if CapPackageAdjustment is true.

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

PrintRecPackageAdjustVoid is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

PrintRecPackageAdjustVoid may cause a PosControlException to be thrown with the following ErrorCode:

Value

Description

Busy

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

Illegal

The fiscal printer does not support package adjustments (see the CapPackageAdjustment property), or the adjustmentType parameter is invalid.

ExtendedErrorWrongState:

The printer is not in either the FiscalReceipt or the FiscalReceiptTotal 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.)

ExtendedErrorBadItemDescription:

The description is too long or contains a reserved word. (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