Closed DmitryBoychuk closed 2 years ago
Запрос состояния ФН сделайте: Номер последнего ФД должен увеличиться на единицу - проверьте
Проверку сделал: пишет число 7 и не меняется:
----------------------------------------
Состояние фазы жизни : 03h, 3
----------------------------------------
Проведена настройка ФН: [да]
Открыт фискальный режим: [да]
Закрыт фискальный режим: [нет]
Закончена передача фискальных данных в ОФД: [нет]
----------------------------------------
Текущий документ : 00h, Нет открытого документа
Данные документа : 00h, Нет данных документа
Состояние смены : 01h, Смена открыта
Флаги предупреждения : 00h, 0
Дата и время ФН : 01.09.2022 16:00:00
Номер ФН : 9999078902011964
Номер последнего ФД : 7
так же посмотрели в КЯ, там пишется такая ошибка:
Отправка в ОФД/ОИСМ/ОКП: Ошибка recv( ): errno = 11.
R OFD [after] TCP recv( ) = -1 (>0: OK, bytes received; <=0: errno=11)
R OFD [before] TCP recv( ): offset = 0; bytes_to_recv = 30 (header)
E/pttSocketApp: aniAsfIpc.c:971 Error(105):Recv failed, ipcPtr [0xb4619000], sd 4
E/pttSocketApp: pttSocketApp.c:759 IPC Recv failed
EAGAIN 11 Resource temporarily unavailable
[6695] [ProtocolV2_0x82c4fb60 ] [D] command FF45 return code: 0 execution took 449ms
Если ошибки нет на закрытие чека, то чек должен быть зарегистрирован в ФН и может быть распечатан.
Параметры регистрации пришлите: сделайте Запрос документа о регистрации в тесте драйвера ФР.
Можете написать где именно запрашивается такой функционал в тест драйвере? Не получилось найти...
Первый раз выдавало ошибку:
После перезахода на вкладку стало норм:
1209,ВЕРСИЯ ФФД:4 (1.2)
1190,ФФД ФН:4
1041,ФН:9999078902011964
1037,РН ККТ:0000000001016500
1018,ИНН:7736570901
1040,ФД:1
1012,ДАТА, ВРЕМЯ:19.08.2022 15:18:00
1077,ФП:3260774813 (2104C25B799D)
1017,ИНН ОФД:7709364346
1062,СНО:1 (ОБЩ.)
1056,ШФД:0
1002,АВТОНОМН. РЕЖИМ:0
1001,АВТОМАТ. РЕЖИМ:0
1290,ПРИЗН. УСЛОВИЙ ПРИМЕН. ККТ:256
1205,ИЗМ. СВЕД. О ККТ:1
1213,РЕСУРС КЛЮЧЕЙ:470
1189,ФФД ККТ:4 (1.2)
1187,МЕСТО РАСЧЕТОВ:пр. Андропова
1188,ВЕР. ККТ:003
1060,САЙТ ФНС:[www.nalog.ru](http://www.nalog.ru/)
1117,АДР. ЭЛ. ПОЧТЫ ОТПРАВ. ЧЕКА:[infra@moysklad.ru](mailto:infra@moysklad.ru)
1046,ОФД:Первый ОФД
1013,ЗН ККТ:3201011000000131
1021,КАССИР:Кассир
1048,НАИМЕН. ПОЛЬЗ.:ООО "ЛОГНЕКС"
1009,АДР.РАСЧЕТОВ:пр. Андропова
Подтвердите, что чек закрывается успешно, но чек не регистрируется в ФН (не меняется Номер последнего ФД)
Да, номер последнего ФД не меняется и остановился на 7. Об успешности закрытия чека могу судить по возвращаемому коду 0 и логам:
[6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx()
[6695] [TcpSocketIO_0x984de860 ] [D] -> 8F 78 00 12 00 FF 45 01 00 00 00 98 3A 00 00 00 D0 4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7 50
[6695] [TcpSocketIO_0x984de860 ] [D] <- 8F
[6695] [TcpSocketIO_0x984de860 ] [D] <- 12 00 12 00 FF 45 00 00 00 00 00 00 05 00 00 00 EB F1 96 C0 03 1E
[6695] [ProtocolV2_0x82c4fb60 ] [D] command FF45 return code: 0 execution took 449ms
[6695] [ProtocolV2_0x82c4fb60 ] [D] commands total: 18, succeed: 18, failed: 0, avg. exec time: 66ms
[6695] [classic_interface_0x8158a440 ] [T] FNCloseCheckEx() ok
@asem-m Небольшое дополнение. Чек регистрируется в ФН и меняется номер последнего ФД. Видимо этот функционал не работает при подключенном сокете к программе теста драйвера. После перезагруке терминала стало нормально Но чек всеравно не печатается
т.е. вы получили текущий Номер ФД, сделали открытие чека, набрали позиции и на закрытие чека получили command FF45 return code: 0
, снова запросили Номер ФД и он совпал с предыдущим или инкрементировался?
ЭЛЕКТРОН.ПРИНТЕР №0, 0-ВЫКЛ,1-ВКЛ,2-NULL
?Мы закрываем чек командой FNCloseCheckEx из classic_interface. Она отрабатывает корректно. Возвращается 0. Последний номер ФД увеличился на еденицу. В ОФД продажа не ушла. Значение в Т3П18 - 2
@asem-m Изменение флага помогло!)) Спасибо!
Пытаюсь напчатать чек при продаже товара, но чек не печается хотя все команды отрабатывают корректно. В итоге аналогичная ситуация и при продаже примера самой библиотеки. Лог прикладываю:
Можете подсказать в чем может быть проблема?