public class cmdReceipt extends DatecsFiscalDevice
Modifier and Type | Class and Description |
---|---|
static class |
cmdReceipt.AlignmentType |
static class |
cmdReceipt.BarcdeType
Printing of barcode
'1' - EAN8 barcode.
|
static class |
cmdReceipt.FiscalReceipt
Fiscal receipt
|
static class |
cmdReceipt.FiscalSale
Class of the sale process and the transactions associated with it
|
static class |
cmdReceipt.FiscalTransaction
Class hold Status of the fiscal receipt
|
static class |
cmdReceipt.NonFiscalReceipt
Class handles a Non-fiscal receipt
|
static class |
cmdReceipt.PaymentType |
static class |
cmdReceipt.SeparatingLine
Type - Type of the separating line.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
receiptNumber |
Constructor and Description |
---|
cmdReceipt() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double[] |
cashInCashOut(java.lang.Double dAmount,
boolean foreignCurrency) |
void |
drawerKickOut()
Drawer opening
|
boolean |
isStornoReceiptOpen() |
void |
paperCutting()
Paper cutting
|
void |
paperFeed(int linesToFeed)
Paper feed
|
void |
PrintBarcode(cmdReceipt.BarcdeType bcType,
java.lang.String bcData,
int bcQRSize) |
void |
printFreeText(java.lang.String text,
boolean Bold,
boolean Italic,
boolean DoubleH,
boolean Underline,
cmdReceipt.AlignmentType alignment)
Printing of a free fiscal text with text attributes
|
checkErrorCode, close, getConnectedECRV1, getConnectedModelV2, getConnectedPrinterV1, isConnectedDeviceV2, isConnectedECR, isConnectedPrinter, setConnectedModel, setConnectedModel, setConnectedModel
public boolean isStornoReceiptOpen() throws java.lang.Exception
java.lang.Exception
public void printFreeText(java.lang.String text, boolean Bold, boolean Italic, boolean DoubleH, boolean Underline, cmdReceipt.AlignmentType alignment) throws java.lang.Exception
text
- text of 0...XX symbols, XX = PrintColumns-2;Bold
- Italic
- DoubleH
- Underline
- alignment
- java.lang.Exception
public void paperFeed(int linesToFeed) throws java.lang.Exception
linesToFeed
- - Number of lines t;FiscalExceptionEn
java.io.IOException
java.lang.Exception
public void paperCutting() throws java.lang.Exception
java.lang.Exception
public java.lang.Double[] cashInCashOut(java.lang.Double dAmount, boolean foreignCurrency) throws java.lang.Exception
dAmount
- the sum ( 0.00...9999999.99 or 0...999999999 depending dec point position ); If Amount=0,
the only Answer is returned, and receipt does not print.foreignCurrency
- if true operation in foreign currencyjava.lang.Exception
public void PrintBarcode(cmdReceipt.BarcdeType bcType, java.lang.String bcData, int bcQRSize) throws java.lang.Exception
java.lang.Exception
public void drawerKickOut() throws java.lang.Exception
java.lang.Exception