Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051354Retail ModulesSessionspublic2023-01-12 13:032023-03-20 08:01
malsasua 
ranjith_qualiantech_com 
highmajorunable to reproduce
closedfixed 
5
 
 
No
0051354: When the store is closed, and first till do login, in some cases, it is not possible to complete the login
when the store is closed, and a till is doing login, if the poss_session property stored in the local storage is {"isActive":true} , popup message is displayed and it is not possible to complete the login
. close store
. in till, in dev tools, go to application > local storage > https://xxx [^] >
 - change the property WebPOS.poss_sessionactive to {"isActive":true}
. do login
popup message is displayed (attached):

Change of Business Date
There was a change in Business Date in the Backoffice. In order to continue, reload is required. Sorry for the inconveniences.

. click in OK or F5
popup is displayed again and it is not possible to complete the login
In this point (when popup is displayed):
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/blob/master/web/org.openbravo.retail.sessions/js/components/loginhook.js#L707 [^]

we should set the property to false:
OB.UTIL.localStorage.setItem('poss_sessionactive', '{"isActive":false}' )
No tags attached.
related to defect 0045833 closed ranjith_qualiantech_com It is possible to have two tills opened at the same time 
png popup.png (46,724) 2023-01-12 13:03
https://issues.openbravo.com/file_download.php?file_id=18026&type=bug
png
Issue History
2023-01-12 13:03malsasuaNew Issue
2023-01-12 13:03malsasuaAssigned To => Retail
2023-01-12 13:03malsasuaFile Added: popup.png
2023-01-12 13:03malsasuaTriggers an Emergency Pack => No
2023-01-12 13:08malsasuaProposed Solution updated
2023-01-12 18:49PracticsIssue Monitored: Practics
2023-01-13 08:57ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-01-13 09:43ranjith_qualiantech_comStatusnew => scheduled
2023-01-13 10:38ranjith_qualiantech_comRelationship addedrelated to 0045833
2023-01-18 06:02hgbotNote Added: 0145523
2023-01-19 16:12hgbotResolutionopen => fixed
2023-01-19 16:12hgbotStatusscheduled => closed
2023-01-19 16:12hgbotNote Added: 0145649
2023-01-19 16:12hgbotNote Added: 0145650
2023-03-14 11:17ranjith_qualiantech_comNote Added: 0147519
2023-03-14 11:17ranjith_qualiantech_comStatusclosed => new
2023-03-14 11:17ranjith_qualiantech_comResolutionfixed => open
2023-03-14 12:35ranjith_qualiantech_comStatusnew => scheduled
2023-03-15 06:02hgbotNote Added: 0147525
2023-03-20 08:01hgbotNote Added: 0147675
2023-03-20 08:01hgbotResolutionopen => fixed
2023-03-20 08:01hgbotStatusscheduled => closed
2023-03-20 08:01hgbotNote Added: 0147676

Notes
(0145523)
hgbot   
2023-01-18 06:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/66 [^]
(0145649)
hgbot   
2023-01-19 16:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: aebe4a61984f72b498d6cf1d2b3c64c0c0d64142
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 19-01-2023 15:11:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/aebe4a61984f72b498d6cf1d2b3c64c0c0d64142 [^]

Fixed ISSUE-51354: POSS Session should be removed when businessdate is not present
* When POS loaded with session isactive and without cashupcode & businessdate,
  then session isactive should be removed

---
M web/org.openbravo.retail.sessions/js/components/loginhook.js
---
(0145650)
hgbot   
2023-01-19 16:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/66 [^]
(0147519)
ranjith_qualiantech_com   
2023-03-14 11:17   
Two till opened if Pref. "Enable Close Store process in Web POS" is enabled in the following case.

Backoffice:
1) Add Pref. "Enable Close Store process in Web POS" -> Y
POS
1) Login with user "vallblanca", Open Till, Do Cashup, Close Store
2) Go Offline
3) Login with user "vallblanca", Open Till. Lock Screen
4) Go Online
5) Login with user "demouser", Open Till is displayed. But it should not <--- KO
(0147525)
hgbot   
2023-03-15 06:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/73 [^]
(0147675)
hgbot   
2023-03-20 08:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/73 [^]
(0147676)
hgbot   
2023-03-20 08:01   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 56e17eb5068f0245919873f2b7a44421c06e63e0
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 14-03-2023 16:27:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/56e17eb5068f0245919873f2b7a44421c06e63e0 [^]

Fixed ISSUE-51354: POS Session should be removed when businessdate is not present
* When login online, businessdate is present in localstorage but not in backoffice,
  then Session info should be removed from localstorage

---
M web/org.openbravo.retail.sessions/js/components/loginhook.js
---