VitalyKravtsov2016 / WebPrinter

0 stars 0 forks source link

Нулевой фискальный чек #19

Open Dafafgh opened 7 months ago

Dafafgh commented 7 months ago

Добрый день Вопрос по чекам с нулевым итогом. Можно ли на уровне драйвера при нулевых значениях цены, суммы по чеку заполнять поле "other": значением "1"?

[13.02.2024 11:40:24.776 ] [00002352] [DEBUG] ToleFiscalPrinter.PrintRecItem('Сер. '#$16' 5 '#$11'РЮ'#$1A#$18' UA4003 D4886 87390 30', 0, 1000, 4, 0, 'шт') [13.02.2024 11:40:24.825 ] [00002352] [DEBUG] ToleFiscalPrinter.PrintRecTotal(0, 0, '')

Со слов fbox сейчас все верно(за исключением "other":0)

[13.02.2024 11:40:24.877 ] [00002352] [DEBUG] POST: http://fbox.ngrok.io/order/create/ [13.02.2024 11:40:24.878 ] [00002352] [DEBUG] => {"qr_code":"","number":1,"receipt_type":"order","products":[{"name":"Сер. № 5 БРЮКИ UA4003 D4886 87390 30","barcode":"8054944335461","amount":1000,"units":1,"unit_name":"шт","price":0,"product_price":0,"vat":0,"vat_percent":12,"discount":0,"discount_percent":0,"other":0,"labels":[],"class_code":"10107002001000002","package_code":1234567,"owner_type":1,"comission_info":{"inn":"","pinfl":""}}],"time":"2024-02-13 13:38:19","cashier":"tsS","received_cash":0,"change":0,"received_card":0,"open_cashbox":false,"send_email":false,"banners":[{"type":"text","data":"Подарочная карта","Cut":false},{"type":"text","data":"Оператор: tsS","Cut":false},{"type":"text","data":"ID: 791 ","Cut":false}]}

SHTRIH-M-OPOS-1_2024.02.13.log

VitalyKravtsov2016 commented 7 months ago

Можно пояснить для чего это нужно? Я так понимаю, что other это сумма других скидок.

Dafafgh commented 7 months ago

мда, не посмотрел в описание поля. тут же нужно передавать сумму, а не 0-1. попробовал закрыть чек, как они пишут, произошла ошибка. что то не нравится в PrintRecTotal, если сумму оплаты ставить 0, то происходит ошибка, а у них в примере сумма по налу и БК 0 стоит(из чата)

[13.02.2024 18:14:44.466 ] [00012144] [DEBUG] ToleFiscalPrinter.DirectIO(106, 0, 'other;100') [13.02.2024 18:14:44.467 ] [00012144] [DEBUG] ToleFiscalPrinter.DirectIO(106, 0, 'other;100')=0

[13.02.2024 18:14:51.390 ] [00012144] [DEBUG] ToleFiscalPrinter.PrintRecTotal(0, 0, '0') [13.02.2024 18:14:51.391 ] [00012144] [DEBUG] ToleFiscalPrinter.PrintRecTotal(0, 0, '0')=0

[13.02.2024 18:14:56.011 ] [00012144] [ERROR] OPOS_E_EXTENDED, OPOS_EFPTR_WRONG_STATE, "Wrong printer state" [13.02.2024 18:14:56.013 ] [00012144] [DEBUG] ToleFiscalPrinter.EndFiscalReceipt(False)=114 SHTRIH-M-OPOS-1_2024.02.13.log