FiscalPrinter.PrintRecItemRefund Method
2/27/2008
Processes one or more item refunds.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public Overridable Sub PrintRecItemRefund ( _
description As String, _
amount As Decimal, _
quantity As Integer, _
vatInfo As Integer, _
unitAmount As Decimal, _
unitName As String _
)
public virtual void PrintRecItemRefund (
string description,
decimal amount,
int quantity,
int vatInfo,
decimal unitAmount,
string unitName
)
public:
virtual void PrintRecItemRefund (
String^ description,
Decimal amount,
int quantity,
int vatInfo,
Decimal unitAmount,
String^ unitName
)
public void PrintRecItemRefund (
String description,
Decimal amount,
int quantity,
int vatInfo,
Decimal unitAmount,
String unitName
)
public function PrintRecItemRefund (
description : String,
amount : decimal,
quantity : int,
vatInfo : int,
unitAmount : decimal,
unitName : String
)
Parameters
- description
Text describing the refund.
- amount
The amount of the refund line.
- quantity
Number of items. If zero, a single item is assumed.
- vatInfo
VAT rate identifier or amount. If not used a zero must be transferred.
- unitAmount
Amount of each refund item. If not used a zero must be transferred.
- unitName
Name of the unit i.e., “kg” or “ltr” or “pcs”. If not used an empty string (“”) must be transferred.
Remarks
The amount is positive, but it is printed as a negative number and the totals registers are decremented.
If unitAmount and quantity are non-zero then the amount parameter corresponds to the product of quantity and unitAmount. Otherwise this method has the same functionality as the method PrintRecRefund.
Some fixed text, along with the description, will be printed on the station defined by the FiscalReceiptStation property to indicate that a refund has occurred.
The vatInfo parameter contains a VAT table identifier if CapHasVatTable is true. Otherwise it contains a VAT amount.
If CapPostPreLine is true an additional application specific line defined by the PreLine property will be printed. After printing this line, PreLine will be reset to an empty string.
This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
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