Форум OlegON > Программы и оборудование для автоматизации торговли > Маркировка

Теги в чеке ККТ при продаже разливного пива : Маркировка

19.05.2024 9:22


23.01.2024 18:59
ProstoFill
 
Без LIBFPTR_PARAM_QUANTITY этого пробивать не хочет, когда добавляю 1023, то выдает ошибку...
24.01.2024 14:46
ProstoFill
 
Тег 2000 передать не получается... Вернее получается, но он в ОФД показывается с ошибкой...
Заполнил теги 1163 (1304), 2108 и 1023...
Чек пробился, в ОФД есть... В Честном знаке нет...
Проверку марки не делаю...
Как его в ЧЗ увидеть?
24.01.2024 15:26
me722
 
Цитата:
ProstoFill Тег 2000 передать не получается... Вернее получается, но он в ОФД показывается с ошибкой...
Заполнил теги 1163 (1304), 2108 и 1023...
Чек пробился, в ОФД есть... В Честном знаке нет...
Проверку марки не делаю...
Как его в ЧЗ увидеть?
Может покажете json, который вы в атол отправляете? вы же json отправляете? теги чека из офд?
на сколько я понимаю алгоритм пробития чека в атол при работе с маркировкой должен в любом случае в ффд 1.2 делать проверку марки, но при этом, если не нужно марку передавать, то:
"Параметр LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER применяется в случаях, когда при продаже маркированного товара указывать код маркировки в чеке необязательно. По умолчанию принимает значение false."
тег 2003 - планируемый статус КМ заполняете? для пива в кегах: LIBFPTR_MES_DRY_FOR_SALE - мерный товар, в стадии реализации;
24.01.2024 15:56
ProstoFill
 
Я по-моему морочу голову всем... сначала надо провести fptr.acceptMarkingCode(); а потом уже формировать позицию чека и делать fptr.registration(); ?
Так?
24.01.2024 15:59
ProstoFill
 
Цитата:
me722 тег 2003 - планируемый статус КМ заполняете? для пива в кегах: LIBFPTR_MES_DRY_FOR_SALE - мерный товар, в стадии реализации;
Это заполнять при проверке или при формировании?
24.01.2024 16:02
ProstoFill
 
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE (65760) = 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_TYPE (65826) = LIBFPTR_MCT12_AUTO (256)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_STATUS (65846) = LIBFPTR_MES_DRY_FOR_SALE (2)
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 1
[FiscalPrinter] > LIBFPTR_PARAM_MEASUREMENT_UNIT (65851) = LIBFPTR_IU_PIECE (0)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_PROCESSING_MODE (65852) = 0
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_FRACTIONAL_QUANTITY (65853) = "500/30000"
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER (65871) = true
[FiscalPrinter] libfptr_begin_marking_code_validation()
[FiscalPrinter] output > U@4;01046302384000112156eD&=j{GS}93v2Yx;╙[07h][01h][00h][02h][FFh][03h][02h][00h][00h][01h]<[08h][01h][00h][00h]6[08h][01h][00h][00h][0Bh][05h][19h][00h][0Ch][05h][09h][00h]500/30000[0Dh][05h][02h][00h]Ї[01h][0Eh][05h][02h][00h]0u;
[Transport] send fiscal (4B) 4B 40 55 40 34 3B 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78 3B D3 07 01 00 02 FF 03 02 00 00 01 3C 08 01 00 00 36 08 01 00 00 0B 05 19 00 0C 05 09 00 35 30 30 2F 33 30 30 30 30 0D 05 02 00 F4 01 0E 05 02 00 30 75 3B (93 bytes total)
[Transport] recv fiscal (4B) 4B 30 30 30 3B 31 3B (7 bytes total)
[FiscalPrinter] input < 0;1;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_RESULT (65847) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_OFFLINE_VALIDATION_ERROR (65848) = LIBFPTR_CER_TYPE_INCORRECT (1)
[FiscalPrinter] libfptr_get_marking_code_validation_status()
[FiscalPrinter] output > UA
[Transport] send fiscal (4C) 4C 40 55 41 (4 bytes total)
[Transport] recv fiscal (4C) 4C 30 30 31 3B 30 3B 30 3B 3B 30 3B (12 bytes total)
[FiscalPrinter] input < 1;0;0;;0;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_READY (65850) = true
[FiscalPrinter] < LIBFPTR_PARAM_IS_REQUEST_SENT (65878) = false
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION (65887) = "Ошибок нет"
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR (65849) = 0
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] < LIBFPTR_PARAM_TLV_LIST (65858) = ""
[FiscalPrinter] libfptr_accept_marking_code()
[FiscalPrinter] output > UB1;
[Transport] send fiscal (4D) 4D 40 55 42 31 3B (6 bytes total)
[Transport] recv fiscal (4D) 4D 30 30 30 3B (5 bytes total)
[FiscalPrinter] input < 0;
[FiscalPrinter] Чтение таблицы КМ (1 элементов)
[FiscalPrinter] 1. [CRC = 1475515807, 2106 = 0] 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] Начато выполнение потока EOTTCP1:00000EA8
[FiscalPrinter] Завершение выполнения потока EOTTCP1:00000EA8
[FiscalPrinter] > 1262 (1262) = "030"
[FiscalPrinter] > 1263 (1263) = "24.01.2024"
[FiscalPrinter] > 1264 (1264) = "20240124"
[FiscalPrinter] > 1265 (1265) = "crpt=mrk"
[FiscalPrinter] libfptr_util_form_tlv()
[FiscalPrinter] < LIBFPTR_PARAM_TAG_VALUE (65624) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 08 00 63 72 70 74 3D 6D 72 6B
[FiscalPrinter] > 1260 (1260) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 08 00 63 72 70 74 3D 6D 72 6B
[FiscalPrinter] > 1304 (1304) = "04630238400011"
[FiscalPrinter] > 2102 (2102) = 0
[FiscalPrinter] > 2108 (2108) = 41
[FiscalPrinter] > LIBFPTR_PARAM_PRICE (65632) = 4.6
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 0.5
[FiscalPrinter] > LIBFPTR_PARAM_POSITION_SUM (65634) = 2.3
[FiscalPrinter] > LIBFPTR_PARAM_COMMODITY_NAME (65631) = "ПИВО СВЕТЛОЕ НЕФИЛЬТРОВАННОЕ"
[FiscalPrinter] > LIBFPTR_PARAM_TAX_TYPE (65569) = LIBFPTR_TAX_NO (6)
[FiscalPrinter] > LIBFPTR_PARAM_USE_ONLY_TAX_TYPE (65563) = true
[FiscalPrinter] > 1212 (1212) = 31
[FiscalPrinter] > 1214 (1214) = 4
[FiscalPrinter] libfptr_registration()

вот такой вот лог
24.01.2024 17:06
ProstoFill
 
Ну все перерыл... И проверку добавил...
Вот что заметил... В чек в ОФД не приходит тег 2106... Хотя судя по логам я его туда передаю.
24.01.2024 17:08
ProstoFill
 
Цитата:
student вот что получается при полной марке на штрихе 2106=15

а вот что по идее должно быть

просто во всех фр что попадались насколько я понял работа идет по схеме с осу а там должен быть жтин...
в тоже время сие не совсем стыкуется методичками чз - если как по ним жтин+сериал то у штриха 2106 в принципе не формируется (правда это может зависеть от лицензий - штрихи их с конца прошлого года вводят - мы будем обновлять в ближайшее время - отпишусь по результатам)
атол как и штрих принимает и жтин и жтин+сериал и марку целиком и везде там 2106=0
вот здесь же передается 2106...
24.01.2024 17:57
me722
 
Цитата:
ProstoFill [FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE (65760) = 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_TYPE (65826) = LIBFPTR_MCT12_AUTO (256)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_STATUS (65846) = LIBFPTR_MES_DRY_FOR_SALE (2)
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 1
[FiscalPrinter] > LIBFPTR_PARAM_MEASUREMENT_UNIT (65851) = LIBFPTR_IU_PIECE (0)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_PROCESSING_MODE (65852) = 0
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_FRACTIONAL_QUANTITY (65853) = "500/30000"
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER (65871) = true
[FiscalPrinter] libfptr_begin_marking_code_validation()
[FiscalPrinter] output > U@4;01046302384000112156eD&=j{GS}93v2Yx;╙[07h][01h][00h][02h][FFh][03h][02h][00h][00h][01h]<[08h][01h][00h][00h]6[08h][01h][00h][00h][0Bh][05h][19h][00h][0Ch][05h][09h][00h]500/30000[0Dh][05h][02h][00h]Ї[01h][0Eh][05h][02h][00h]0u;
[Transport] send fiscal (4B) 4B 40 55 40 34 3B 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78 3B D3 07 01 00 02 FF 03 02 00 00 01 3C 08 01 00 00 36 08 01 00 00 0B 05 19 00 0C 05 09 00 35 30 30 2F 33 30 30 30 30 0D 05 02 00 F4 01 0E 05 02 00 30 75 3B (93 bytes total)
[Transport] recv fiscal (4B) 4B 30 30 30 3B 31 3B (7 bytes total)
[FiscalPrinter] input < 0;1;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_RESULT (65847) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_OFFLINE_VALIDATION_ERROR (65848) = LIBFPTR_CER_TYPE_INCORRECT (1)
[FiscalPrinter] libfptr_get_marking_code_validation_status()
[FiscalPrinter] output > UA
[Transport] send fiscal (4C) 4C 40 55 41 (4 bytes total)
[Transport] recv fiscal (4C) 4C 30 30 31 3B 30 3B 30 3B 3B 30 3B (12 bytes total)
[FiscalPrinter] input < 1;0;0;;0;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_READY (65850) = true
[FiscalPrinter] < LIBFPTR_PARAM_IS_REQUEST_SENT (65878) = false
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION (65887) = "Ошибок нет"
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR (65849) = 0
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] < LIBFPTR_PARAM_TLV_LIST (65858) = ""
[FiscalPrinter] libfptr_accept_marking_code()
[FiscalPrinter] output > UB1;
[Transport] send fiscal (4D) 4D 40 55 42 31 3B (6 bytes total)
[Transport] recv fiscal (4D) 4D 30 30 30 3B (5 bytes total)
[FiscalPrinter] input < 0;
[FiscalPrinter] Чтение таблицы КМ (1 элементов)
[FiscalPrinter] 1. [CRC = 1475515807, 2106 = 0] 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] Начато выполнение потока EOTTCP1:00000EA8
[FiscalPrinter] Завершение выполнения потока EOTTCP1:00000EA8
[FiscalPrinter] > 1262 (1262) = "030"
[FiscalPrinter] > 1263 (1263) = "24.01.2024"
[FiscalPrinter] > 1264 (1264) = "20240124"
[FiscalPrinter] > 1265 (1265) = "crpt=mrk"
[FiscalPrinter] libfptr_util_form_tlv()
[FiscalPrinter] < LIBFPTR_PARAM_TAG_VALUE (65624) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 08 00 63 72 70 74 3D 6D 72 6B
[FiscalPrinter] > 1260 (1260) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 08 00 63 72 70 74 3D 6D 72 6B
[FiscalPrinter] > 1304 (1304) = "04630238400011"
[FiscalPrinter] > 2102 (2102) = 0
[FiscalPrinter] > 2108 (2108) = 41
[FiscalPrinter] > LIBFPTR_PARAM_PRICE (65632) = 4.6
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 0.5
[FiscalPrinter] > LIBFPTR_PARAM_POSITION_SUM (65634) = 2.3
[FiscalPrinter] > LIBFPTR_PARAM_COMMODITY_NAME (65631) = "ПИВО СВЕТЛОЕ НЕФИЛЬТРОВАННОЕ"
[FiscalPrinter] > LIBFPTR_PARAM_TAX_TYPE (65569) = LIBFPTR_TAX_NO (6)
[FiscalPrinter] > LIBFPTR_PARAM_USE_ONLY_TAX_TYPE (65563) = true
[FiscalPrinter] > 1212 (1212) = 31
[FiscalPrinter] > 1214 (1214) = 4
[FiscalPrinter] libfptr_registration()

вот такой вот лог
Проверка должна быть так:
FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE (65760) = 30 31 30 34 36 33 30 32 33 38 34 30 30 30 31 31 32 31 35 36 65 44 26 3D 6A 7B 47 53 7D 39 33 76 32 59 78
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_TYPE (65826) = LIBFPTR_MCT12_AUTO (256)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_STATUS (65846) = LIBFPTR_MES_DRY_FOR_SALE (2)
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 0.500
[FiscalPrinter] > LIBFPTR_PARAM_MEASUREMENT_UNIT (65851) = LIBFPTR_IU_LITER (41)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_PROCESSING_MODE (65852) = 0
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER (65871) = true
[FiscalPrinter] libfptr_begin_marking_code_validation()

тогда в 2106 будет 0, а в чеке [M]

(не знаю, что Вы передаёте в LIBFPTR_PARAM_MARKING_CODE, но я передаю полный КМ)
24.01.2024 18:16
ProstoFill
 
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE (65760) = 30 34 36 33 30 32 33 38 34 30 30 30 31 31
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_TYPE (65826) = LIBFPTR_MCT12_AUTO (256)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_CODE_STATUS (65846) = LIBFPTR_MES_DRY_FOR_SALE (2)
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 0.5
[FiscalPrinter] > LIBFPTR_PARAM_MEASUREMENT_UNIT (65851) = LIBFPTR_IU_LITER (41)
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_PROCESSING_MODE (65852) = 0
[FiscalPrinter] > LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER (65871) = true
[FiscalPrinter] libfptr_begin_marking_code_validation()
[FiscalPrinter] output > U@4;04630238400011;╙[07h][01h][00h][02h][FFh][03h][02h][00h][01h][05h]<[08h][01h][00h])6[08h][01h][00h][00h];
[Transport] send fiscal (49) 49 40 55 40 34 3B 30 34 36 33 30 32 33 38 34 30 30 30 31 31 3B D3 07 01 00 02 FF 03 02 00 01 05 3C 08 01 00 29 36 08 01 00 00 3B (43 bytes total)
[Transport] recv fiscal (49) 49 30 30 30 3B 31 3B (7 bytes total)
[FiscalPrinter] input < 0;1;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_RESULT (65847) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_OFFLINE_VALIDATION_ERROR (65848) = LIBFPTR_CER_TYPE_INCORRECT (1)
[FiscalPrinter] libfptr_get_marking_code_validation_status()
[FiscalPrinter] output > UA
[Transport] send fiscal (4A) 4A 40 55 41 (4 bytes total)
[Transport] recv fiscal (4A) 4A 30 30 31 3B 30 3B 30 3B 3B 30 3B (12 bytes total)
[FiscalPrinter] input < 1;0;0;;0;
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_VALIDATION_READY (65850) = true
[FiscalPrinter] < LIBFPTR_PARAM_IS_REQUEST_SENT (65878) = false
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION (65887) = "Ошибок нет"
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR (65849) = 0
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] < LIBFPTR_PARAM_TLV_LIST (65858) = ""
[FiscalPrinter] libfptr_accept_marking_code()
[FiscalPrinter] output > UB1;
[Transport] send fiscal (4B) 4B 40 55 42 31 3B (6 bytes total)
[Transport] recv fiscal (4B) 4B 30 30 30 3B (5 bytes total)
[FiscalPrinter] input < 0;
[FiscalPrinter] Чтение таблицы КМ (1 элементов)
[FiscalPrinter] 1. [CRC = 1696438401, 2106 = 0] 30 34 36 33 30 32 33 38 34 30 30 30 31 31
[FiscalPrinter] < 2106 (2106) = 0
[FiscalPrinter] < LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT (65886) = 0
[FiscalPrinter] > 1262 (1262) = "030"
[FiscalPrinter] > 1263 (1263) = "24.01.2024"
[FiscalPrinter] > 1264 (1264) = "20240124"
[FiscalPrinter] > 1265 (1265) = "mode=horeca"
[FiscalPrinter] libfptr_util_form_tlv()
[FiscalPrinter] < LIBFPTR_PARAM_TAG_VALUE (65624) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 0B 00 6D 6F 64 65 3D 68 6F 72 65 63 61
[FiscalPrinter] > 1260 (1260) = EE 04 03 00 30 33 30 EF 04 0A 00 32 34 2E 30 31 2E 32 30 32 34 F0 04 08 00 32 30 32 34 30 31 32 34 F1 04 0B 00 6D 6F 64 65 3D 68 6F 72 65 63 61
[FiscalPrinter] > 1303 (1303) = "04630238400011"
[FiscalPrinter] > 2102 (2102) = 0
[FiscalPrinter] > 2106 (2106) = 0
[FiscalPrinter] > LIBFPTR_PARAM_PRICE (65632) = 4.6
[FiscalPrinter] > LIBFPTR_PARAM_QUANTITY (65633) = 0.5
[FiscalPrinter] > LIBFPTR_PARAM_MEASUREMENT_UNIT (65851) = LIBFPTR_IU_LITER (41)
[FiscalPrinter] > LIBFPTR_PARAM_POSITION_SUM (65634) = 2.3
[FiscalPrinter] > LIBFPTR_PARAM_COMMODITY_NAME (65631) = "ПИВО СВЕТЛОЕ НЕФИЛЬТРОВАННОЕ"
[FiscalPrinter] > LIBFPTR_PARAM_TAX_TYPE (65569) = LIBFPTR_TAX_NO (6)
[FiscalPrinter] > LIBFPTR_PARAM_USE_ONLY_TAX_TYPE (65563) = true
[FiscalPrinter] > 1212 (1212) = 31
[FiscalPrinter] > 1214 (1214) = 4
[FiscalPrinter] libfptr_registration()

вот последняя версия лога... Тег 2106 в драйвер устанавливаю, в ОФД его нет.
Часовой пояс GMT +3, время: 09:22.

Форум на базе vBulletin®
Copyright © Jelsoft Enterprises Ltd.
В случае заимствования информации гипертекстовая индексируемая ссылка на Форум обязательна.