FiscalPrinter.PrintRecItemFuelVoid Method (String, Decimal, Decimal, Decimal)
Voids a fuel item on the station specified by the FiscalReceiptStation property.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim description As String
Dim price As Decimal
Dim vatRate As Decimal
Dim specialTax As Decimal
Dim fiscalPrinter1 As FiscalPrinter
fiscalPrinter1.PrintRecItemFuelVoid(description, price, vatRate, specialTax)
Syntax
'Declaration
Overloads Public MustOverride Sub PrintRecItemFuelVoid( _
ByVal description As String, _
ByVal price As Decimal, _
ByVal vatRate As Decimal, _
ByVal specialTax As Decimal _
)
public abstract void PrintRecItemFuelVoid(
string description,
decimal price,
decimal vatRate,
decimal specialTax
);
public: abstract Void PrintRecItemFuelVoid(
String^ description,
Decimal^ price,
Decimal^ vatRate,
Decimal^ specialTax
);
public abstract void PrintRecItemFuelVoid(
System.String description,
System.Decimal price,
System.Decimal vatRate,
System.Decimal specialTax
);
public abstract function PrintRecItemFuelVoid(
description : String,
price : Decimal,
vatRate : Decimal,
specialTax : Decimal
) : Void;
Parameters
- description
Text describing the fuel product.
- price
Price of the fuel item. If not used a zero is transferred.
- vatRate
VAT rate amount. If not used a zero is transferred.
- specialTax
Special tax amount (for example, road tax). If not used a zero is to be transferred.
Remarks
If CapOnlyVoidLastItem is TRUE, only the last fuel item transferred to the Fiscal Printer can be voided.
This method is performed synchronously if AsyncMode is FALSE, and asynchronously if AsyncMode is TRUE.
PrintRecItemFuelVoid 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 |
This method is not supported. |
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.) |
ExtendedErrorBadPrice |
The price is invalid. (Only applies if AsyncMode is false.) |
ExtendedErrorBadItemDescription |
The discount description is too long or contains a reserved word. (Can be returned only if AsyncMode is FALSE.) |
ExtendedErrorBadVat |
The VAT parameter is invalid. (Only applies 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
PrintRecItemFuel
CapOnlyVoidLastItem
FiscalReceiptStation
BeginFiscalReceipt
FiscalReceiptStation