FiscalPrinter.PrintRecPackageAdjustment Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Called to give an adjustment for a package of some items booked before.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecPackageAdjustment ( _
adjustmentType As FiscalAdjustmentType, _
description As String, _
vatAdjustments As IEnumerable(Of VatInfo) _
)
public abstract void PrintRecPackageAdjustment (
FiscalAdjustmentType adjustmentType,
string description,
IEnumerable<VatInfo> vatAdjustments
)
public:
virtual void PrintRecPackageAdjustment (
FiscalAdjustmentType adjustmentType,
String^ description,
IEnumerable<VatInfo>^ vatAdjustments
) abstract
public abstract void PrintRecPackageAdjustment (
FiscalAdjustmentType adjustmentType,
String description,
IEnumerable<VatInfo> vatAdjustments
)
public abstract function PrintRecPackageAdjustment (
adjustmentType : FiscalAdjustmentType,
description : String,
vatAdjustments : IEnumerable<VatInfo>
)
Parameters
- adjustmentType
Type of adjustment.
- description
Text describing the adjustment.
- vatAdjustments
Structure containing a list of adjustment(s) for different VAT(s).
Remarks
This adjustment (discount or surcharge) can be either a fixed currency amount or a percentage amount relating to items combined to an adjustment package. Each item of the package must be transferred before.
Fixed amount adjustments are only supported if CapPackageAdjustment is true. This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
PrintRecPackageAdjustment 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