FiscalPrinter.PrintRecRefund Method (String, Decimal, Decimal)

Processes a refund.

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

Usage

'Usage
Dim description As String
Dim amount As Decimal
Dim vatRate As Decimal
Dim fiscalPrinter1 As FiscalPrinter
fiscalPrinter1.PrintRecRefund(description, amount, vatRate)

Syntax

'Declaration
Overloads Public MustOverride Sub PrintRecRefund( _
    ByVal description As String, _
    ByVal amount As Decimal, _
    ByVal vatRate As Decimal _
)
public abstract void PrintRecRefund(
    string description, 
    decimal amount, 
    decimal vatRate
);
public: abstract Void PrintRecRefund(
    String^ description, 
    Decimal^ amount, 
    Decimal^ vatRate
);
public abstract void PrintRecRefund(
    System.String description, 
    System.Decimal amount, 
    System.Decimal vatRate
);
public abstract function PrintRecRefund(
     description : String, 
     amount : Decimal, 
     vatRate : Decimal
) : Void;

Parameters

  • description
    Text describing the refund.
  • amount
    Amount of the refund.
  • vatRate
    VAT rate amount.

Remarks

The amount is positive, but is printed as a negative number and the totals registers are decremented.

Some fixed text, along with the description, is printed on the receipt and journal to indicate that a refund has occurred.

PrintRecRefund is performed synchronously if AsyncMode is FALSE, and asynchronously if AsyncMode is TRUE.

PrintRecRefund 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.)

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. (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.)

ExtendedErrorBadItemAmount:

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

ExtendedErrorBadVat:

The VAT information 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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
BeginFiscalReceipt
EndFiscalReceipt
AmountDecimalPlaces
PrintRecCash
PrintRecItem
PrintRecItem
PrintRecItemAdjustment
PrintRecItemAdjustment
PrintRecItemFuel
PrintRecItemFuel
PrintRecItemFuelVoid
PrintRecItemFuelVoid
PrintRecMessage
PrintRecNotPaid
PrintRecPackageAdjustment
PrintRecPackageAdjustVoid
PrintRecRefund
PrintRecRefundVoid
PrintRecRefundVoid
PrintRecSubtotal
PrintRecSubtotalAdjustment
PrintRecSubtotalAdjustVoid
PrintRecTaxId
PrintRecTotal
PrintRecVoid
PrintRecVoidItem
PrintRecVoidItem