VitalyKravtsov2016 / WebPrinter

0 stars 0 forks source link

Ошибка от предыдущей транзакции #16

Closed Dafafgh closed 9 months ago

Dafafgh commented 9 months ago

к товару не был привязан код ИКПУ("class_code") и fbox.ngrok.io вернул ошибку здесь:

[30.01.2024 11:16:15.691 ] [00010160] [DEBUG] POST: http://fbox.ngrok.io/order/create/ [30.01.2024 11:16:15.693 ] [00010160] [DEBUG] => {"qr_code":"","number":1,"receipt_type":"order","products":[{"name":"Сер. № 0 БРЮКИ UA4186 D4884 78707 28","barcode":"8054944375917","amount":1000,"units":1,"price":2410000,"product_price":2410000,"vat":258214,"vat_percent":12,"discount":0,"discount_percent":0,"other":0,"labels":[],"class_code":"","package_code":0,"owner_type":0,"comission_info":{"inn":"","pinfl":""}}],"time":"2024-01-30 13:14:18","cashier":"tsS","received_cash":2410000,"change":0,"received_card":0,"open_cashbox":false,"send_email":false} [30.01.2024 11:16:16.462 ] [00010160] [DEBUG] <= { "data": null, "error": { "code": 401, "message": "Dobavьte IKPU(MXIK) kod v tovar/Mahsulotga MXIK kodini qo'shing", "data": null }, "is_success": false } [30.01.2024 11:16:16.465 ] [00010160] [ERROR] OPOS_E_EXTENDED, 401, "Dobavьte IKPU(MXIK) kod v tovar/Mahsulotga MXIK kodini qo'shing" [30.01.2024 11:16:16.467 ] [00010160] [DEBUG] ToleFiscalPrinter.EndFiscalReceipt(False)=114

далее мы добавили код ИКПУ и транзакция по fbox.ngrok.io прошла успешно, но в конце похоже прилетела ошибка от предыдущей транзакции и в АСУ WebPrinter вернул ошибку 111 и в АСУ транзакция не закрылась тут: [30.01.2024 11:17:20.157 ] [00010160] [DEBUG] POST: http://fbox.ngrok.io/order/create/ [30.01.2024 11:17:20.159 ] [00010160] [DEBUG] => {"qr_code":"","number":1,"receipt_type":"order","products":[{"name":"Сер. № 5 БРЮКИ UA4003 D4886 87390 30","barcode":"8054944335461","amount":1000,"units":1,"price":2270000,"product_price":2270000,"vat":243214,"vat_percent":12,"discount":0,"discount_percent":0,"other":0,"labels":[],"class_code":"10107002001000002","package_code":0,"owner_type":0,"comission_info":{"inn":"","pinfl":""}}],"time":"2024-01-30 13:15:22","cashier":"tsS","received_cash":2270000,"change":0,"received_card":0,"open_cashbox":false,"send_email":false} [30.01.2024 11:17:23.778 ] [00010160] [DEBUG] <= { "data": { "terminal_id": "UZ170703100597", "receipt_count": 6351, "date_time": "20240130131522", "fiscal_sign": "702291711481", "applet_version": "0300", "qr_url": "https://ofd.soliq.uz/check?t=UZ170703100597&r=6351&c=20240130131522&s=702291711481", "cash_box_number": null }, "error": null, "is_success": true } [30.01.2024 11:17:23.783 ] [00010160] [ERROR] OPOS_E_EXTENDED, 401, "Dobavьte IKPU(MXIK) kod v tovar/Mahsulotga MXIK kodini qo'shing" [30.01.2024 11:17:23.786 ] [00010160] [DEBUG] ToleFiscalPrinter.EndFiscalReceipt(False)=114

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

VitalyKravtsov2016 commented 9 months ago

Поправил: https://github.com/VitalyKravtsov2016/WebPrinter/releases/tag/17