Openbravo Issue Tracking System - POS2
View Issue Details
0057288POS2POSpublic2024-11-22 09:192024-11-28 12:39
victor_perez 
sreehari 
urgentcriticalalways
closedfixed 
5
 
24Q3.324Q3.3 
approved
OBPS
Production - Confirmed Stable
2024-07-19
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/3b98aafeeaa3a836d09bf8f5bc66c5be4879afeb [^]
No
0057288: Not possible to login to the POS with the offline mode
When you have a till loaded, if you activate the offline mode, you will not be able to login again.

The error is thrown from the funtion "loginInitActions", then the line of code "await initializeDocumentSequence();" and finally in the "doFetch" from the screenshot.

You can reproduce it in livebuilds.


1. Login a till with the online mode activated. IT MUST BE A TILL THAT HAS NOT DONE ANY ORDER (thus the "sequence" value of the main orders document type must have value "0")
2. Once the till is fully loaded, log out
3. Activate the offline mode using Chrome tools
4. Log in to the till
5. An error will appear with the message "This action is not allowed in offline mode"
No tags attached.
blocks defect 0057253 closed sreehari Not possible to login to the POS with the offline mode 
Issue History
2024-11-26 17:18marvintmTypedefect => backport
2024-11-26 17:18marvintmTarget Version => 24Q3.3
2024-11-28 11:40hgbotMerge Request Status => open
2024-11-28 11:40hgbotNote Added: 0172700
2024-11-28 12:39hgbotMerge Request Statusopen => approved
2024-11-28 12:39hgbotResolutionopen => fixed
2024-11-28 12:39hgbotStatusscheduled => closed
2024-11-28 12:39hgbotFixed in Version => 24Q3.3
2024-11-28 12:39hgbotNote Added: 0172709
2024-11-28 12:39hgbotNote Added: 0172710

Notes
(0172700)
hgbot   
2024-11-28 11:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3166 [^]
(0172709)
hgbot   
2024-11-28 12:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f0435b7d0ddf155578ca0aa8df27e09c9b633379
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 27-11-2024 12:47:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f0435b7d0ddf155578ca0aa8df27e09c9b633379 [^]

Fixes ISSUE-57288: Added Undefined checks and try catch blocks

---
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
---
(0172710)
hgbot   
2024-11-28 12:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3166 [^]