Openbravo Issue Tracking System - POS2
View Issue Details
0057289POS2POSpublic2024-11-22 09:192024-11-28 15:18
victor_perez 
sreehari 
urgentcriticalalways
closedfixed 
5
 
24Q2.524Q2.5 
approved
OBPS
Production - Confirmed Stable
2024-07-19
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/3b98aafeeaa3a836d09bf8f5bc66c5be4879afeb [^]
No
0057289: 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 => 24Q2.5
2024-11-28 11:42hgbotMerge Request Status => open
2024-11-28 11:42hgbotNote Added: 0172701
2024-11-28 15:18hgbotMerge Request Statusopen => approved
2024-11-28 15:18hgbotResolutionopen => fixed
2024-11-28 15:18hgbotStatusscheduled => closed
2024-11-28 15:18hgbotFixed in Version => 24Q2.5
2024-11-28 15:18hgbotNote Added: 0172728
2024-11-28 15:18hgbotNote Added: 0172729

Notes
(0172701)
hgbot   
2024-11-28 11:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3167 [^]
(0172728)
hgbot   
2024-11-28 15:18   
Directly closing issue as related merge request is already approved.

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

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

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