FiscalPrinter.PrintRecRefund Method
2/27/2008
Processes a refund.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecRefund ( _
description As String, _
amount As Decimal, _
vatInfo As Integer _
)
public abstract void PrintRecRefund (
string description,
decimal amount,
int vatInfo
)
public:
virtual void PrintRecRefund (
String^ description,
Decimal amount,
int vatInfo
) abstract
public abstract void PrintRecRefund (
String description,
Decimal amount,
int vatInfo
)
public abstract function PrintRecRefund (
description : String,
amount : decimal,
vatInfo : int
)
Parameters
- description
Text that describes the refund.
- amount
Amount of the refund.
- vatInfo
VAT table identifier.
Remarks
The amount is positive, but is printed as a negative number and the totals registers are decremented.
Some fixed text, together 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 may cause a PosControlException to be thrown with one of the following ErrorCodes:
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. (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.) |
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.
See Also
Reference
FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
FiscalPrinter.BeginFiscalReceipt Method
FiscalPrinter.EndFiscalReceipt Method
AmountDecimalPlaces
FiscalPrinter.PrintRecCash Method
PrintRecItem
PrintRecItem
PrintRecItemAdjustment
FiscalPrinter.PrintRecItemAdjustment Method
PrintRecItemFuel
PrintRecItemFuel
PrintRecItemFuelVoid
FiscalPrinter.PrintRecItemFuelVoid Method
FiscalPrinter.PrintRecMessage Method
FiscalPrinter.PrintRecNotPaid Method
PrintRecPackageAdjustment
PrintRecPackageAdjustVoid
FiscalPrinter.PrintRecRefund Method
PrintRecRefundVoid
PrintRecRefundVoid
PrintRecSubtotal
PrintRecSubtotalAdjustment
PrintRecSubtotalAdjustVoid
PrintRecTaxId
PrintRecTotal
PrintRecVoid