INECRMAN ошибка при закрытии чека "Значение поля команды вне допустимого диапазона"

Раздел для обсуждения программного обеспечения КБ по ККМ Меркурий.
Ответить
Аватара пользователя
igorpooh
Сообщения: 13
Зарегистрирован: 02 июн 2021, 11:33

INECRMAN ошибка при закрытии чека "Значение поля команды вне допустимого диапазона"

Сообщение igorpooh »

Доброй ночи
Делаем плагин для оплаты с помощью М-119Ф.
Стоит служба INECRMAN
Создаю чек с позициями. При закрытии чека получаю ошибку
"result":20,"description":"Значение поля команды вне допустимого диапазона."
Версия INECRMAN 1.10.0.606 (28-05-2021)
Куда копать ?

Открыл чек

Код: Выделить всё

[2021-06-05 22:17:36,444]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type OpenCheckRequest ::
{"checkType":0,"taxSystem":1,"address":"Улица Космонавтов","location":"квартира","senderEmail":"","printDoc":true,"additionalProps":"","cashierInfo":{"cashierName":"YG","cashierINN":""},"buyerInfo":{"buyerName":"ИП Валерьевич","buyerINN":"774308635981"},"correctionInfo":null,"userAttribute":null,"sessionKey":"191727+739","command":"OpenCheck"}
[2021-06-05 22:17:36,575]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type OpenCheckResponse ::
{"shiftNum":5,"checkNum":8,"result":0,"description":null}
Добавляю позиции в чек

Код: Выделить всё

[2021-06-05 22:17:36,580]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00059","markingCode":"","productName":"Luigi's Special","qty":10000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":1095,"sum":1095,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,589]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":1,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,594]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00179","markingCode":"","productName":"Anchovies","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,602]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":2,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,610]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00183","markingCode":"","productName":"BBQ Chicken","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,626]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":3,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,638]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00182","markingCode":"","productName":"Ham","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,648]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":4,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,652]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00181","markingCode":"","productName":"Mozzarella","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,657]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":5,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,665]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00180","markingCode":"","productName":"Pepperoni Slices","qty":40000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":220,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,676]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":6,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,685]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00177","markingCode":"","productName":"Mushrooms","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,692]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":7,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,702]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00185","markingCode":"","productName":"Peppers","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,710]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":8,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,719]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00178","markingCode":"","productName":"Pineapple","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,728]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":9,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,733]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type AddGoodsRequest ::
{"nomenclatureCode":"00184","markingCode":"","productName":"Spicy Beef Strips","qty":30000,"section":1,"taxCode":1,"paymentFormCode":4,"productTypeCode":1,"countryOfOrigin":"","customsDeclaration":"","additionalAttribute":"","price":55,"sum":165,"exciseAmount":0,"addInfo":"","agent":null,"sessionKey":"191727+739","command":"AddGoods"}
[2021-06-05 22:17:36,740]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type AddGoodsResponse ::
{"goodsNum":10,"shiftNum":5,"checkNum":8,"result":0,"description":null}
[2021-06-05 22:17:36,744]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 21), type CloseCheckRequest ::
{"sendCheckTo":"","addInfo":"","payment":{"cash":1135,"ecash":1500,"prepayment":0,"credit":0,"consideration":0},"sessionKey":"191727+739","command":"CloseCheck"}
Закрываю чек

Код: Выделить всё

[2021-06-05 22:17:37,247]  INFO [ 3] - GetDefaultRestRequest (file:GetDefaultRestRequest.cs , line 40), type CloseCheckResponse ::
{"fiscalDocNum":0,"fiscalSign":null,"shiftNum":0,"checkNum":0,"result":20,"description":"Значение поля команды вне допустимого диапазона."}
[2021-06-05 22:17:37,266] ERROR [ 3] - Response Code: 20 , Desc: Значение поля команды вне допустимого диапазона.

Теги:
Аватара пользователя
LeonidT
Сотрудник Инкотекс
Сотрудник Инкотекс
Сообщения: 396
Зарегистрирован: 18 окт 2019, 17:45

Re: INECRMAN ошибка при закрытии чека "Значение поля команды вне допустимого диапазона"

Сообщение LeonidT »

Ну как минимум Вы передаете некорректные значения для тега 1162, nomenclatureCode. Это поле для маркированного товара и в частности для марки GS1 с разделителями. См.таблицу 50 ФФД.
Везде где в документации идет отсыл к тегам, необходимо руководствоваться ФФД по корректности вводимых значений.
Аватара пользователя
igorpooh
Сообщения: 13
Зарегистрирован: 02 июн 2021, 11:33

Re: INECRMAN ошибка при закрытии чека "Значение поля команды вне допустимого диапазона"

Сообщение igorpooh »

Добрый вечер.
Спасибо большое за подсказку
Ответить