FiscalPrinter.PrintRecPackageAdjustVoid Method

Voids the adjustment for a package of some items.

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

Usage

'Usage
Dim adjustmentType As FiscalAdjustmentType
Dim vatAdjustments() As VatInfo
Dim fiscalPrinter1 As FiscalPrinter
fiscalPrinter1.PrintRecPackageAdjustVoid(adjustmentType, vatAdjustments)

Syntax

'Declaration
Public MustOverride Sub PrintRecPackageAdjustVoid( _
    ByVal adjustmentType As FiscalAdjustmentType, _
    ByVal vatAdjustments() As VatInfo _
)
public abstract void PrintRecPackageAdjustVoid(
    FiscalAdjustmentType adjustmentType,
    VatInfo[] vatAdjustments
);
public: abstract Void PrintRecPackageAdjustVoid(
    FiscalAdjustmentType^ adjustmentType,
    array<VatInfo^>^ vatAdjustments
);
public abstract void PrintRecPackageAdjustVoid(
    FiscalAdjustmentType adjustmentType,
    VatInfo[] vatAdjustments
);
public abstract function PrintRecPackageAdjustVoid(
     adjustmentType : FiscalAdjustmentType,
     vatAdjustments : VatInfo[]
) : Void;

Parameters

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

Remarks

This adjustment (discount/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 returns void if successful, and can throw the following exceptions:

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. (Only applies 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
PrintRecPackageAdjustment
CapPackageAdjustment
PreLine