shtrih-m / fr_drv_ng

релизы и поддержка драйвера fr_drv_ng
36 stars 5 forks source link

142 нулевой итог чека (Zero receipt total) #284

Closed NovikovRA closed 7 months ago

NovikovRA commented 7 months ago

Добрый день. Ловим ошибку 142 при регистрации чека, смотрю в логи и не вижу проблемы, можете подсказать, что делаем не так? Устройство: ШТРИХ НАНО Ф, ффд 1.2

[2024-04-24 12:46:27.304] [30953] [ci_0xb4000070c8148850 ] [T] Set_CheckType(0) [2024-04-24 12:46:27.304] [30953] [ci_0xb4000070c8148850 ] [T] Set_CheckType() ok [2024-04-24 12:46:27.304] [30953] [ci_0xb4000070c8148850 ] [T] OpenCheck() [2024-04-24 12:46:27.304] [30953] [BtSerialIO_0xb400006f68122910 ] [D] -> 02 06 8D 1E 00 00 00 00 95 [2024-04-24 12:46:27.318] [30953] [BtSerialIO_0xb400006f68122910 ] [D] <- 06 [2024-04-24 12:46:29.584] [30953] [BtSerialIO_0xb400006f68122910 ] [D] <- 02 03 8D 00 1E 90 [2024-04-24 12:46:29.584] [30953] [BtSerialIO_0xb400006f68122910 ] [D] -> 06 [2024-04-24 12:46:29.584] [30953] [ProtocolV1_0xb400006f88155b90 ] [D] command 8D return code: 0 execution took 2279ms [2024-04-24 12:46:29.584] [30953] [ProtocolV1_0xb400006f88155b90 ] [D] commands total: 489, succeed: 471, failed: 18, avg. exec time: 119ms [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] OpenCheck() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_CheckType(1) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_CheckType() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Quantity(1) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Quantity() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_StringForPrinting(Товар по свободной цене) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_StringForPrinting() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Price(100000) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Price() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1Enabled(true) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1Enabled() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1(100000) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue1Enabled(false) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue1Enabled() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Tax1(1) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Tax1() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_PaymentItemSign(1) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_PaymentItemSign() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_PaymentTypeSign(4) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_PaymentTypeSign() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_MeasureUnit(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_MeasureUnit() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_StringForPrinting(`) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_StringForPrinting() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1(100000) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ1() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ2(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ2() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ3(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ3() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ4(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ4() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ5(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ5() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ6(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ6() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ7(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ7() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ8(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ8() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ9(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ9() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ10(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ10() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ11(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ11() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ12(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ12() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ13(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ13() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ14(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ14() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ15(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ15() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ16(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_Summ16() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue1(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue1() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue2(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue2() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue3(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue3() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue4(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue4() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue5(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue5() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue6(0) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxValue6() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxType(32) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_TaxType() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_RoundingSumm(0`) [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] Set_RoundingSumm() ok [2024-04-24 12:46:29.584] [30953] [ci_0xb4000070c8148850 ] [T] FNCloseCheckEx() [2024-04-24 12:46:29.584] [30953] [BtSerialIO_0xb400006f68122910 ] [D] -> 02 76 FF 45 1E 00 00 00 A0 86 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 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 00 00 00 00 20 D5 [2024-04-24 12:46:29.617] [30953] [BtSerialIO_0xb400006f68122910 ] [D] <- 06 [2024-04-24 12:46:29.838] [30953] [BtSerialIO_0xb400006f68122910 ] [D] <- 02 03 FF 45 8E 37 [2024-04-24 12:46:29.838] [30953] [BtSerialIO_0xb400006f68122910 ] [D] -> 06 [2024-04-24 12:46:29.838] [30953] [ProtocolV1_0xb400006f88155b90 ] [D] command FF45 return code: 142 execution took 254ms [2024-04-24 12:46:29.839] [30953] [ProtocolV1_0xb400006f88155b90 ] [E] Zero receipt total [2024-04-24 12:46:29.839] [30953] [ProtocolV1_0xb400006f88155b90 ] [D] commands total: 490, succeed: 471, failed: 19, avg. exec time: 120ms [2024-04-24 12:46:29.839] [30953] [ci_0xb4000070c8148850 ] [D] FNCloseCheckEx() fail [2024-04-24 12:46:29.839] [30953] [ci_0xb4000070c8148850 ] [E] Zero receipt total [2024-04-24 12:46:29.839] [30953] [ci_0xb4000070c8148850 ] [T] ReadLastErrorDescription()

NovikovRA commented 7 months ago

Правильно ли я понимаю что не хватает команды "FNOperation()" после строки с "Set_MeasureUnit()"?

swex commented 7 months ago

ну да, вы открываете и закрываете чек без операций...

NovikovRA commented 7 months ago

ну да, вы открываете и закрываете чек без операций... @swex Исторически сложилось, что мы только для POS касс вызывали операцию, не знаю почему. Подскажите, есть ли описанные случаи, когда мы не должны её вызывать?

swex commented 7 months ago

что такое POS кассы? не понимаю вообще о чем речь.