FiscalPrinter.PrintRecRefundVoid Method
2/27/2008
Processes a void of a refund.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecRefundVoid ( _
description As String, _
amount As Decimal, _
vatInfo As Integer _
)
public abstract void PrintRecRefundVoid (
string description,
decimal amount,
int vatInfo
)
public:
virtual void PrintRecRefundVoid (
String^ description,
Decimal amount,
int vatInfo
) abstract
public abstract void PrintRecRefundVoid (
String description,
Decimal amount,
int vatInfo
)
public abstract function PrintRecRefundVoid (
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 and the totals registers are incremented.
Some fixed text, along with the description, will be printed on the station defined by the FiscalReceiptStation property to indicate that a refund has been voided.
If CapOnlyVoidLastItem is true, only the last refund item transferred to the fiscal printer can be voided.
This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
PrintRecRefundVoid 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
PrintRecRefund
FiscalReceiptStation