public static class cmdReceipt.FiscalReceipt.FiscalSale extends cmdReceipt
Modifier and Type | Class and Description |
---|---|
static class |
cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType |
cmdReceipt.AlignmentType, cmdReceipt.FiscalReceipt, cmdReceipt.InvoiceClientInfo, cmdReceipt.NonFiscalReceipt, cmdReceipt.PaidMode, cmdReceipt.SeparatingLine, cmdReceipt.TotalResult
allReceipt
Constructor and Description |
---|
FiscalSale() |
Modifier and Type | Method and Description |
---|---|
void |
add()
Registration of free sale
|
void |
add(java.lang.String descriptionL1,
java.lang.String descriptionL2,
java.lang.String taxCd,
java.lang.String price,
java.lang.String qwan,
java.lang.String unitName,
cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType,
java.lang.String percentAbs)
Registration of free sale by VAT group
|
void |
addByDepartment(java.lang.String descriptionL1,
java.lang.String descriptionL2,
java.lang.String dept,
java.lang.String price,
java.lang.String qwan,
java.lang.String unitName,
cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType,
java.lang.String percentAbs)
Registration of free sale by VAT group
|
void |
addByPLU(java.lang.String pluCode,
java.lang.String dept,
java.lang.String quanity,
java.lang.String unitName,
cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType,
java.lang.String discountValue)
Registering the sale of a programmed item
|
java.lang.String |
getsDiscValueStr() |
boolean |
isSendToDisplay() |
cmdReceipt.TotalResult |
saleTotal(java.lang.String sDescriptionL1,
java.lang.String sDescriptionL2,
java.lang.String paymentType,
java.lang.String tenderAmount)
Payments and calculation of the total sum
|
void |
setsDept(java.lang.String sDept) |
void |
setsDescriptionL1(java.lang.String sDescriptionL1) |
void |
setsDescriptionL2(java.lang.String sDescriptionL2) |
void |
setsDiscountType(java.lang.String sDiscountType) |
void |
setsDiscValueStr(java.lang.String sDiscValueStr) |
void |
setSendToDisplay(boolean sendToDisplay) |
void |
setsPLU(java.lang.String sPLU) |
void |
setsPrice(java.lang.String sPrice) |
void |
setsQwan(java.lang.String sQwan) |
void |
setsTaxCd(java.lang.String sTaxCd) |
java.lang.String |
subtotal(boolean print,
boolean dispaly,
cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType corecctionType,
java.lang.String corecctionValue)
subtotal
|
checkErrorCode, close, getConnectedECRV1, getConnectedModelV2, getConnectedPrinterV1, isConnectedDeviceV2, isConnectedECR, isConnectedPrinter, setConnectedModel, setConnectedModel, setConnectedModel
public boolean isSendToDisplay()
public void setSendToDisplay(boolean sendToDisplay)
public void addByPLU(java.lang.String pluCode, java.lang.String dept, java.lang.String quanity, java.lang.String unitName, cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType, java.lang.String discountValue) throws java.lang.Exception
pluCode
- dept
- quanity
- unitName
- correctionType
- discountValue
- java.lang.Exception
public void add() throws java.lang.Exception
java.lang.Exception
public void addByDepartment(java.lang.String descriptionL1, java.lang.String descriptionL2, java.lang.String dept, java.lang.String price, java.lang.String qwan, java.lang.String unitName, cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType, java.lang.String percentAbs) throws java.lang.Exception
descriptionL1
- descriptionL2
- dept
- price
- qwan
- percentAbs
- java.lang.Exception
public void add(java.lang.String descriptionL1, java.lang.String descriptionL2, java.lang.String taxCd, java.lang.String price, java.lang.String qwan, java.lang.String unitName, cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType correctionType, java.lang.String percentAbs) throws java.lang.Exception
descriptionL1
- descriptionL2
- taxCd
- price
- qwan
- percentAbs
- java.lang.Exception
public java.lang.String subtotal(boolean print, boolean dispaly, cmdReceipt.FiscalReceipt.FiscalSale.CorrectionType corecctionType, java.lang.String corecctionValue) throws java.lang.Exception
corecctionType
- - 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.corecctionValue
- 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 cmdReceipt.TotalResult saleTotal(java.lang.String sDescriptionL1, java.lang.String sDescriptionL2, java.lang.String paymentType, java.lang.String tenderAmount) throws java.lang.Exception
paymentType
- - Type of payment;
'P' - Cash payment (default);
'N' - Payment by credit;
'C' - Payment by check;
'D' - Debit card payment
'I' - Programmable type of payment 1
'J' - Programmable payment type 2
'K' - Programmable payment type 3
'L' - Programmable type of payment 4
'I' - Programmable payment type 1
'J' - Programmable payment type 2
'K' - Programmable type of payment 3
'L' - Programmable payment type 4
'M' - Coupons
'N' - External coupons
'O' - Packaging
'P' - Internal service
'Q' - Damage
'R' - Bank transfers
'S' - With checktenderAmount
- - Amount to pay ( 0.00...9999999.99 or 0...999999999 depending dec point position );java.lang.Exception
public void setsDescriptionL1(java.lang.String sDescriptionL1)
public void setsDescriptionL2(java.lang.String sDescriptionL2)
public void setsTaxCd(java.lang.String sTaxCd)
public void setsDept(java.lang.String sDept)
public void setsPrice(java.lang.String sPrice)
public void setsQwan(java.lang.String sQwan)
public void setsDiscountType(java.lang.String sDiscountType)
public java.lang.String getsDiscValueStr()
public void setsDiscValueStr(java.lang.String sDiscValueStr)
public void setsPLU(java.lang.String sPLU)