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

Notes
(0172698)
hgbot   
2024-11-28 11:37   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3165 [^]
(0172702)
hgbot   
2024-11-28 11:47   
Directly closing issue as related merge request is already approved.

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

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

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