VitalyKravtsov2016 / WebPrinter

0 stars 0 forks source link

Сдача #4

Closed Dafafgh closed 8 months ago

Dafafgh commented 8 months ago

Оплатили 1 товар на сумму 22700 пятью купюрами по 5000, получили ошибку

[22.01.2024 11:11:58.681 ] [00007140] [DEBUG] POST: http://fbox.ngrok.io/order/create/ [22.01.2024 11:11:58.681 ] [00007140] [DEBUG] => {"number":1,"receipt_type":"order","products":[{"name":"Сер. № 4 БРЮКИ UA4003 D4886 87390 30","barcode":"8054944335461","amount":1000,"units":1,"price":2270000,"product_price":2270000,"vat":0,"vat_percent":0,"discount":0,"discount_percent":0,"other":0,"labels":[],"class_code":"02710001007000000","package_code":0,"owner_type":0,"comission_info":{"inn":"","pinfl":""}}],"time":"2024-01-22 13:10:06","cashier":"tsS","received_cash":2500000,"change":230000,"received_card":0,"open_cashbox":false,"send_email":false} [22.01.2024 11:11:59.352 ] [00007140] [DEBUG] <= { "data": null, "error": { "code": 65531, "message": "cannot encode receipt", "data": "failed to make total block\n difference 230000 between 2270000 and 2500000 is larger than 10000\n math error\n" }, "is_success": false }

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

и нормально ли это?: [22.01.2024 11:11:58.514 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0') [22.01.2024 11:11:58.514 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0')=0 [22.01.2024 11:11:58.544 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0') [22.01.2024 11:11:58.544 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0')=0 [22.01.2024 11:11:58.580 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0') [22.01.2024 11:11:58.580 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0')=0 [22.01.2024 11:11:58.605 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0') [22.01.2024 11:11:58.605 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0')=0 [22.01.2024 11:11:58.630 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0') [22.01.2024 11:11:58.630 ] [00007140] [DEBUG] ToleFiscalPrinter.PrintRecTotal(22700, 5000, '0')=0

VitalyKravtsov2016 commented 8 months ago

Ошибку возвращает сервер - спрошу у разработчиков.