public static class cmdReceipt.FiscalSale extends cmdReceipt
Modifier and Type | Class and Description |
---|---|
static class |
cmdReceipt.FiscalSale.DiscountType |
cmdReceipt.AlignmentType, cmdReceipt.BarcdeType, cmdReceipt.FiscalReceipt, cmdReceipt.FiscalSale, cmdReceipt.FiscalTransaction, cmdReceipt.NonFiscalReceipt, cmdReceipt.PaymentType, cmdReceipt.SeparatingLine
receiptNumber
Constructor and Description |
---|
FiscalSale() |
FiscalSale(java.lang.String pluName,
java.lang.String taxCd,
java.lang.String price) |
FiscalSale(java.lang.String pluName,
java.lang.String taxCd,
java.lang.String price,
java.lang.String quantity,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discountValue,
java.lang.String department) |
FiscalSale(java.lang.String pluName,
java.lang.String taxCd,
java.lang.String price,
java.lang.String quantity,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discountValue,
java.lang.String department,
java.lang.String unit) |
Modifier and Type | Method and Description |
---|---|
cmdReceipt.FiscalSale |
add()
Registration of free sale
|
cmdReceipt.FiscalSale |
add(java.lang.String description,
java.lang.String taxCd,
java.lang.String dept,
java.lang.String price,
java.lang.String qwan,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discValueStr)
Registration of free sale
|
cmdReceipt.FiscalSale |
add(java.lang.String description,
java.lang.String taxCd,
java.lang.String dept,
java.lang.String price,
java.lang.String qwan,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discValueStr,
java.lang.String unit)
Registration of free sale
|
int |
addByPLU(java.lang.String pluCode,
java.lang.String quantity,
java.lang.String price,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discountValue)
Registering the sale of a programmed item
|
java.lang.String |
printSubtotal(boolean display,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discountValue)
subtotal
|
java.lang.String |
readSubtotal(boolean display,
cmdReceipt.FiscalSale.DiscountType discountType,
java.lang.String discountValue)
subtotal
|
void |
saleTotal(cmdReceipt.PaymentType paymentType,
java.lang.String tenderAmount)
Payments and calculation of the total sum
|
cashInCashOut, drawerKickOut, isStornoReceiptOpen, paperCutting, paperFeed, PrintBarcode, printFreeText
checkErrorCode, close, getConnectedECRV1, getConnectedModelV2, getConnectedPrinterV1, isConnectedDeviceV2, isConnectedECR, isConnectedPrinter, setConnectedModel, setConnectedModel, setConnectedModel
public FiscalSale()
public FiscalSale(java.lang.String pluName, java.lang.String taxCd, java.lang.String price)
public FiscalSale(java.lang.String pluName, java.lang.String taxCd, java.lang.String price, java.lang.String quantity, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discountValue, java.lang.String department)
pluName
- Name of product, up to 72 characters not empty string;taxCd
- Tax code; 1,2,3...8price
- Product price, with sign '-' at void operations. Format: 2 decimals; up to *9999999.99quantity
- Quantity of the product ( default: 1.000 ); Format: 3 decimals; up to *999999.999discountType
- discountValue
- department
- Number of the department 0..99; If '0' - Without department;public FiscalSale(java.lang.String pluName, java.lang.String taxCd, java.lang.String price, java.lang.String quantity, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discountValue, java.lang.String department, java.lang.String unit)
pluName
- Name of product, up to 72 characters not empty string;taxCd
- Tax code; 1,2,3...8price
- Product price, with sign '-' at void operations. Format: 2 decimals; up to *9999999.99quantity
- Quantity of the product ( default: 1.000 ); Format: 3 decimals; up to *999999.999discountType
- - type of discount.
'0' or empty - no discount;
'1' - surcharge by percentage;
'2' - discount by percentage;
'3' - surcharge by sum;
'4' - discount by sum; If DiscountType is non zero, DiscountValue have to contain value. The format must be a value with twodiscountValue
- - value of discount.
a number from 0.01 to 9999999.99 for sum operations;
a number from 0.01 to 99.99 for percentage operations;department
- Number of the department 0..99; If '0' - Without department;unit
- Unit name, up to 6 characters not empty string;public int addByPLU(java.lang.String pluCode, java.lang.String quantity, java.lang.String price, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discountValue) throws java.lang.Exception
pluCode
- quantity
- price
- discountType
- discountValue
- java.lang.Exception
public cmdReceipt.FiscalSale add() throws java.lang.Exception
java.lang.Exception
public cmdReceipt.FiscalSale add(java.lang.String description, java.lang.String taxCd, java.lang.String dept, java.lang.String price, java.lang.String qwan, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discValueStr, java.lang.String unit) throws java.lang.Exception
description*
- taxCd
- dept
- price
- qwan
- discountType
- discValueStr
- java.lang.Exception
public cmdReceipt.FiscalSale add(java.lang.String description, java.lang.String taxCd, java.lang.String dept, java.lang.String price, java.lang.String qwan, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discValueStr) throws java.lang.Exception
description*
- taxCd
- dept
- price
- qwan
- discountType
- discValueStr
- java.lang.Exception
public java.lang.String readSubtotal(boolean display, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discountValue) throws java.lang.Exception
discountType
- - type of discount.
'0' or empty - no discount;
'1' - surcharge by percentage;
'2' - discount by percentage;
'3' - surcharge by sum;
'4' - discount by sum; If {DiscountType} is non zero, {DiscountValue} have to contain value.discountValue
- value of discount.
a number from 0.00 to 21474836.47 for sum operations;
a number from 0.00 to 99.99 for percentage operations; If {DiscountType} is zero or empty, this
parameter must be emptyjava.lang.Exception
public java.lang.String printSubtotal(boolean display, cmdReceipt.FiscalSale.DiscountType discountType, java.lang.String discountValue) throws java.lang.Exception
discountType
- - type of discount.
'0' or empty - no discount;
'1' - surcharge by percentage;
'2' - discount by percentage;
'3' - surcharge by sum;
'4' - discount by sum; If {DiscountType} is non zero, {DiscountValue} have to contain value.discountValue
- value of discount.
a number from 0.00 to 21474836.47 for sum operations;
a number from 0.00 to 99.99 for percentage operations; If {DiscountType} is zero or empty, this
parameter must be emptyjava.lang.Exception
public void saleTotal(cmdReceipt.PaymentType paymentType, java.lang.String tenderAmount) throws java.lang.Exception
paymentType
- - Type of payment;tenderAmount
- - Amount to pay ( 0.00...9999999.99 or 0...999999999 depending dec point position );java.lang.Exception