Openbravo Issue Tracking System - POS2
View Issue Details
0057947POS2POSpublic2025-02-11 14:042025-02-11 17:38
jfvaringot 
cberner 
immediatecriticalalways
closedfixed 
5
 
 
No
No
0057947: POS2 - 24Q4 - Payment is not possible when connecting offline
REPRODUCED ON LIVEBUILD - 24Q4 - https://livebuilds.openbravo.com/context/pos2_mp_24Q4/web/pos/?terminal=VBS-2 [^]

When you connect to the POS while being already offline, you cannot proceed to the payment of the order.
An error message is displayed when clicking on the payment method.

ERROR MESSAGE : 'Cannot read properties of undefined (reading 'getProcessPaymentTitleError')
To be sure that it does not come from an old issue from cache, clean the cache first.

1. While online, connect to the POS a 1st time.
2. Do a cash-up.
3. Turn offline (not from devtool, but by disconnecting physically the device from internet)
4. Connect to the POS
5. A first error message is displayed 'Failed to update a ServiceWorker for scope....' (screenshot : Offline payment issue - 1)
6. The POS refreshes (screenshot : Offline payment issue - 2)
7. Some errors are displayed
8. Do a sale
9. When on the payment view, when clicking on a payment method, the error 'Cannot read properties of undefined (reading 'getProcessPaymentTitleError' is displayed (screenshot : Offline payment issue - 3)
Payment could be done
No tags attached.
related to defect 0057416 closed cberner When going offline and reloading, the error "Not config found for {"impaired":"False","handedness":"Right"}/1860/961" appears 
depends on backport 005795024Q4.2 closed cberner When going offline and reloading, the error "Not config found for {"impaired":"False","handedness":"Right"}/1860/961" appears 
png Offline payment issue - 1.png (86,784) 2025-02-11 14:04
https://issues.openbravo.com/file_download.php?file_id=20896&type=bug
png

png Offline payment issue - 2.png (11,398) 2025-02-11 14:04
https://issues.openbravo.com/file_download.php?file_id=20897&type=bug
png

png Offline payment issue - 3.png (131,396) 2025-02-11 14:04
https://issues.openbravo.com/file_download.php?file_id=20898&type=bug
png

? offline payment issue.mp4 (3,994,213) 2025-02-11 15:52
https://issues.openbravo.com/file_download.php?file_id=20899&type=bug
png Screenshot from 2025-02-11 16-07-40.png (220,976) 2025-02-11 16:11
https://issues.openbravo.com/file_download.php?file_id=20900&type=bug
png
Issue History
2025-02-11 14:04jfvaringotNew Issue
2025-02-11 14:04jfvaringotAssigned To => Retail
2025-02-11 14:04jfvaringotFile Added: Offline payment issue - 1.png
2025-02-11 14:04jfvaringotTriggers an Emergency Pack => No
2025-02-11 14:04jfvaringotFile Added: Offline payment issue - 2.png
2025-02-11 14:04jfvaringotFile Added: Offline payment issue - 3.png
2025-02-11 14:57migueldejuanaAssigned ToRetail => Triage Platform Conn
2025-02-11 15:52jfvaringotFile Added: offline payment issue.mp4
2025-02-11 16:10adrianromeroNote Added: 0175493
2025-02-11 16:10migueldejuanaAssigned ToTriage Platform Conn => Triage Platform Base
2025-02-11 16:11adrianromeroFile Added: Screenshot from 2025-02-11 16-07-40.png
2025-02-11 16:23cbernerRelationship addedrelated to 0057416
2025-02-11 16:24cbernerNote Added: 0175494
2025-02-11 16:33cbernerAssigned ToTriage Platform Base => cberner
2025-02-11 16:33cbernerStatusnew => scheduled
2025-02-11 16:58cbernerNote Added: 0175497
2025-02-11 16:59cbernerRelationship addeddepends on 0057950
2025-02-11 17:38AugustoMauchOBNetwork customer => No
2025-02-11 17:38AugustoMauchStatusscheduled => resolved
2025-02-11 17:38AugustoMauchResolutionopen => fixed
2025-02-11 17:38AugustoMauchStatusresolved => closed

Notes
(0175493)
adrianromero   
2025-02-11 16:10   
The root cause of this issue is that OB.App.State.getState().Session.applicationMode is null
(0175494)
cberner   
2025-02-11 16:24   
This is related to the following issue: https://issues.openbravo.com/view.php?id=57416 [^]

It was backported to 25Q1 but not 24Q4, we're preparing a backport and should also fix this issue. What Adrián says in the previous note is exactly the problem, missing applicationMode in Session State.
(0175497)
cberner   
2025-02-11 16:58   
It will be fixed as part of this backport: https://issues.openbravo.com/view.php?id=57950 [^]