FiscalPrinter.PrintRecItemFuel Method (String, Decimal, Decimal, Decimal, Decimal, String, Decimal, String)
Prints a receipt 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 quantity As Decimal
Dim vatRate As Decimal
Dim unitPrice As Decimal
Dim unitName As String
Dim specialTax As Decimal
Dim specialTaxName As String
Dim fiscalPrinter1 As FiscalPrinter
fiscalPrinter1.PrintRecItemFuel(description, price, quantity, vatRate, unitPrice, unitName, specialTax, specialTaxName)
Syntax
'Declaration
Overloads Public MustOverride Sub PrintRecItemFuel( _
ByVal description As String, _
ByVal price As Decimal, _
ByVal quantity As Decimal, _
ByVal vatRate As Decimal, _
ByVal unitPrice As Decimal, _
ByVal unitName As String, _
ByVal specialTax As Decimal, _
ByVal specialTaxName As String _
)
public abstract void PrintRecItemFuel(
string description,
decimal price,
decimal quantity,
decimal vatRate,
decimal unitPrice,
string unitName,
decimal specialTax,
string specialTaxName
);
public: abstract Void PrintRecItemFuel(
String^ description,
Decimal^ price,
Decimal^ quantity,
Decimal^ vatRate,
Decimal^ unitPrice,
String^ unitName,
Decimal^ specialTax,
String^ specialTaxName
);
public abstract void PrintRecItemFuel(
System.String description,
System.Decimal price,
System.Decimal quantity,
System.Decimal vatRate,
System.Decimal unitPrice,
System.String unitName,
System.Decimal specialTax,
System.String specialTaxName
);
public abstract function PrintRecItemFuel(
description : String,
price : Decimal,
quantity : Decimal,
vatRate : Decimal,
unitPrice : Decimal,
unitName : String,
specialTax : Decimal,
specialTaxName : String
) : Void;
Parameters
- description
Text describing the fuel product.
- price
Price of the fuel item.
- quantity
Number of items. If zero, a single item is assumed.
- vatRate
VAT rate amount. If not used a zero is to be transferred.
- unitPrice
Price of the fuel item per volume.
- unitName
Name of the volume unit (for example, "ltr"). If not used an empty string ("") is to be transferred.
- specialTax
Special tax amount (for example, road tax). If not used a zero is to be transferred.
- specialTaxName
Name of the special tax.
Remarks
This method is performed synchronously if AsyncMode is FALSE, and asynchronously if AsyncMode is TRUE.
PrintRecItemFuel 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.) |
ExtendedErrorBadItemQuantity |
The quantity is invalid. (Only applies if AsyncMode is FALSE.) |
ExtendedErrorBadPrice |
The unit price is invalid.(Can be returned only if AsyncMode is FALSE.) |
ExtendedErrorBadItemAmount |
The discount amount is invalid. (Can be returned only 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. (Can be returned only if AsyncMode is FALSE.) |
ExtendedErrorReceiptTotalOverflow |
The receipt total has overflowed.(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
FiscalReceiptStation