FiscalPrinter.PrintRecNotPaid Method
2/27/2008
Indicates a part of the receipt's total that is unpaid.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecNotPaid ( _
description As String, _
amount As Decimal _
)
public abstract void PrintRecNotPaid (
string description,
decimal amount
)
public:
virtual void PrintRecNotPaid (
String^ description,
Decimal amount
) abstract
public abstract void PrintRecNotPaid (
String description,
Decimal amount
)
public abstract function PrintRecNotPaid (
description : String,
amount : decimal
)
Parameters
- description
Text that describes the unpaid amount.
- amount
Amount not paid.
Remarks
Some fixed text, together with the description, is printed on the receipt and journal to indicate that part of the receipt total has not been paid. PrintRecNotPaid is supported only if CapReceiptNotPaid is true.
PrintRecNotPaid is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
If PrintRecNotPaid is successful, the PrinterState property is changed to either FiscalReceiptTotal or FiscalReceiptEnding depending on whether the receipt total is now accounted for.
PrintRecNotPaid 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.) |
The printer is not in either the FiscalReceipt or the FiscalReceiptTotal state. |
|
The printer cover is open. (Can be returned only if AsyncMode is false.) |
|
The journal station is out of paper. (Can be returned only if AsyncMode is false.) |
|
The receipt station is out of paper. (Can be returned only if AsyncMode is false.) |
|
The description is too long or contains a reserved word. (Can be returned only if AsyncMode is false.) |
|
The amount 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
AmountDecimalPlaces
CapReceiptNotPaid
FiscalReceiptStation
FiscalPrinter.BeginFiscalReceipt Method
FiscalPrinter.EndFiscalReceipt Method