Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0055833Openbravo LocalizationsLocalization Italypublic2024-06-25 11:592024-07-26 08:56
maite 
Triage Platform Conn 
urgentmajoralways
closedfixed 
5
 
 
0055833: Fiscalization error in receipt: TypeError: Failed to fetch
It is possible to fiscalize the same ticket several times when the "Failed to fetch" exception is thrown by the fiscal printer: the exception is caught but the ticket is fiscalized, then the user presses on the "retry" option and the ticket is fiscalized again. At any point, the fiscal printer answer is Sucess so the ticket is finally synchronized from the till (and fiscalized again)
attached screenshot from the terminal log where the "Failed to fetch" error can be shown

attached screenshot of the point of code where the exception is caught

no related information is found in the HWM log
No tags attached.
png terminal_log.png (102,591) 2024-06-25 11:59
https://issues.openbravo.com/file_download.php?file_id=19937&type=bug
png

png exception.png (16,623) 2024-06-25 12:00
https://issues.openbravo.com/file_download.php?file_id=19938&type=bug
png
Issue History
2024-06-25 11:59maiteNew Issue
2024-06-25 11:59maiteAssigned To => psanjuan
2024-06-25 11:59maiteFile Added: terminal_log.png
2024-06-25 12:00maiteFile Added: exception.png
2024-07-02 14:25psanjuanNote Added: 0166604
2024-07-02 14:29psanjuanNote Edited: 0166604bug_revision_view_page.php?bugnote_id=0166604#r28179
2024-07-08 22:25jonaeAssigned Topsanjuan => Triage Platform Conn
2024-07-26 08:53hgbotResolutionopen => fixed
2024-07-26 08:53hgbotStatusnew => resolved
2024-07-26 08:53hgbotNote Added: 0167373
2024-07-26 08:56adrianromeroStatusresolved => closed

Notes
(0166604)
psanjuan   
2024-07-02 14:25   
(edited on: 2024-07-02 14:29)
It is important to understand why "Failed to fetch" error is shown.
Our proposal is to implement a more detailed log to understand what is the current status of the connectivity with the printer, and the network request sent.

Besides this, we need to implement a way for the seller to indicate if a "Documento Commerciale" (simplified Invoice) has been printed under this scenario, with some field to indicate the "Document No" and the "Z Report", so we avoid to "Retry" the call to the Printer a second time.

(0167373)
hgbot   
2024-07-26 08:53   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.fiscalrtprinter [^]
Changeset: 3d3efb2e6a5968629f57e8c855fa07e6336f8ac2
Author: Fermín Gascón <f.gascon@orisha.com>
Date: 26-07-2024 06:53:25
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.fiscalrtprinter/-/commit/3d3efb2e6a5968629f57e8c855fa07e6336f8ac2 [^]

[RM-14956] Confirmation after fetch error and rounding
Fixes ISSUE-55833: Fiscalization error in receipt: TypeError: Failed to fetch
Fixes ISSUE-55989: RTPrinter rounding issue

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.events.fiscalrtprinter/res/fiscalreceipt.xml
M web/org.openbravo.events.fiscalrtprinter/source/RTPrinterFiscalization.js
M web/org.openbravo.events.fiscalrtprinter/source/model/utils/formatFunctions.js
---