new KkmCheckString()
Общая структура для описания строк чека
Members
-
BarCode :null|Object
-
штрихкод
Type:
- null | Object
- See:
Properties:
Name Type Description BarcodeType
string Barcode
string -
PrintImage :null|Object
-
Картинка
Type:
- null | Object
- See:
Properties:
Name Type Description Image
string -
PrintText :null|Object
-
текстовая строка
Type:
- null | Object
- See:
Properties:
Name Type Argument Default Description Text
string Font
number <optional>
0 Intensity
number <optional>
0 -
Register :null|Object
-
регистрация продажи
Type:
- null | Object
- See:
Properties:
Name Type Description Name
string Quantity
number Price
number Amount
number Department
number Tax
number EAN13
string EGAIS
object
Methods
-
setBarcode(barcodeType, barcode)
-
установка штрих кода
Parameters:
Name Type Description barcodeType
string "EAN13", "CODE39", "CODE128", "QR", "PDF417" barcode
string Значение - Since:
-
- 0.2.5
Returns:
- Type
- KkmCheckString
-
setEan13(ean)
-
Parameters:
Name Type Description ean
string штрих код EAN13 - Since:
-
- 0.3.0
Returns:
- Type
- KkmCheckString
-
setEGAIS(barcode, ean, volume)
-
Установить ЕГАИС у товара
Parameters:
Name Type Description barcode
string ean
string volume
number - Since:
-
- 0.2.5
Returns:
- Type
- KkmCheckString
-
setPrintImage(image)
-
Установка картинки
Parameters:
Name Type Description image
string Картинка в Base64. - Since:
-
- 0.2.5
Returns:
- Type
- KkmCheckString
-
setPrintText(text [, font] [, intensity])
-
Установка текста
Parameters:
Name Type Argument Description text
string текст для вывода с управляющими кодами font
number <optional>
Шрифт 1-4 , 0 - по настройкам ККМ intensity
number <optional>
Интесивность 1-15 , 0 - по настройкам ККМ - Since:
-
- 0.2.5
Returns:
- Type
- KkmCheckString
-
setRegister(name, quantity, price, amount [, tax] [, department] [, ean13])
-
Регистрация товара
Parameters:
Name Type Argument Description name
string Название товара quantity
number Количество price
number цена amount
number сумма tax
number <optional>
0 (НДС 0%), 10 (НДС 10%), 18 (НДС 18%), -1 (НДС не облагается), 118 (НДС 18/118), 110 (НДС 10/110) department
number <optional>
отдел магазина ean13
string <optional>
штрих код - Since:
-
- 0.2.5
Returns:
- Type
- KkmCheckString
-
setTax(tax)
-
Parameters:
Name Type Description tax
number 0 (НДС 0%), 10 (НДС 10%), 18 (НДС 18%), -1 (НДС не облагается), 118 (НДС 18/118), 110 (НДС 10/110) - Since:
-
- 0.3.0
Returns:
- Type
- KkmCheckString