Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038717Retail ModulesWeb POSpublic2018-06-07 13:062018-09-27 17:03
malsasua 
jorge-garcia 
normalminorhave not tried
closedfixed 
5
 
RR18Q4 
marvintm
No
0038717: when refresh browser in offline, login window is displayed
when you are working in offline, and browser is refreshed, login window is displayed.

This behavior is not correct, as in online, if the browser is refreshed, no login window is displayed
.[online] do login
.[online] add product
.[online] refresh browser -> no login window is displayed (It is ok)
.[offline] refresh browser -> login window is displayed
No tags attached.
related to feature request 0038212RR18Q4 closed jorge-garcia It would be fine to define the time limit a POS terminal can be offline 
Issue History
2018-06-07 13:06malsasuaNew Issue
2018-06-07 13:06malsasuaAssigned To => Retail
2018-06-07 13:06malsasuaTriggers an Emergency Pack => No
2018-07-02 17:51javierRodriguezNote Added: 0105532
2018-07-02 17:51javierRodriguezAssigned ToRetail => malsasua
2018-07-02 17:51javierRodriguezStatusnew => feedback
2018-07-30 09:10marvintmStatusfeedback => scheduled
2018-07-30 09:10marvintmTypedefect => design defect
2018-07-30 13:48jorge-garciaAssigned Tomalsasua => jorge-garcia
2018-07-30 13:48jorge-garciaStatusscheduled => acknowledged
2018-08-13 13:15jorge-garciaStatusacknowledged => scheduled
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106332
2018-08-14 08:22hgbotStatusscheduled => resolved
2018-08-14 08:22hgbotResolutionopen => fixed
2018-08-14 08:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8264f7b6121aaa4f62cb0e44b5b15c5dd076d13f [^]
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106333
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106335
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106337
2018-08-21 15:08marvintmReview Assigned To => marvintm
2018-08-21 15:08marvintmStatusresolved => closed
2018-08-21 15:08marvintmFixed in Version => RR18Q4
2018-09-19 08:44hgbotCheckin
2018-09-19 08:44hgbotNote Added: 0106852
2018-09-19 08:45hgbotCheckin
2018-09-19 08:45hgbotNote Added: 0106853
2018-09-26 13:18hgbotCheckin
2018-09-26 13:18hgbotNote Added: 0107037
2018-09-26 13:19jorge-garciaRelationship addedrelated to 0038212
2018-09-27 17:03hgbotCheckin
2018-09-27 17:03hgbotNote Added: 0107056

Notes
(0105532)
javierRodriguez   
2018-07-02 17:51   
This behavior is the expected one. If you want to change it, you have to mark it as design defect.
(0106332)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 8264f7b6121aaa4f62cb0e44b5b15c5dd076d13f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Aug 07 12:37:44 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8264f7b6121aaa4f62cb0e44b5b15c5dd076d13f [^]

Fixed issue 38717: when refresh browser in offline, login window is
displayed

This commit includes:
  * Included new preference property called “Web POS Offline session time
    expiration” in reference list.
  * Preference value is set in localStorage before login to be used
    during login.

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/retail/posterminal/LoginUtilsServlet.java
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0106333)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a9e1f47dc48afa0d46992ab3f6d1d0ead14ae780
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Aug 07 12:49:42 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a9e1f47dc48afa0d46992ab3f6d1d0ead14ae780 [^]

Related to issue 38717: when refresh browser in offline, login window is
displayed

Added new default value for “Web POS Offline session time expiration” preference
of 60 minutes.

---
M src-db/database/sourcedata/AD_PREFERENCE.xml
---
(0106335)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0f0ee38700b1a953683a4ad0476f4d89f1df829d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Aug 07 14:59:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0f0ee38700b1a953683a4ad0476f4d89f1df829d [^]

Related to issue 38717: when refresh browser in offline, login window is
displayed

If the user goes offline, the logic will check the new preference “ Web POS
Offline session time expiration” to decide if it should continue to pointofsale
window or should go to login page. This deceission is made checking the last
successful online request done.

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0106337)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: fe4ad38b1f0102c6a0667f4d0f3db2e2f8fb0af1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 13 12:38:33 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fe4ad38b1f0102c6a0667f4d0f3db2e2f8fb0af1 [^]

Related to issue 38717: when refresh browser in offline, login window is
displayed

Save last user id and user name logged in the application to search
its proper active session in case the application is being reloaded
in offline.

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0106852)
hgbot   
2018-09-19 08:44   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d3ebe5685a0904e895ba8b6655cad9d42e010314
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Sep 17 13:03:46 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d3ebe5685a0904e895ba8b6655cad9d42e010314 [^]

Related to issue 38717: when refresh browser in offline, login window is
displayed

Change message level and message info.

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0106853)
hgbot   
2018-09-19 08:45   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: cf9212bf73e6ea14d43a7b8a7df1a0f77bff3012
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Sep 03 11:47:57 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cf9212bf73e6ea14d43a7b8a7df1a0f77bff3012 [^]

Related to issue 38717: when refresh browser in offline, login window is
displayed

Change LoginUtilsServlet to get system preferences correctly and send those
preferences to the client.

---
M src/org/openbravo/retail/posterminal/LoginUtilsServlet.java
---
(0107037)
hgbot   
2018-09-26 13:18   
Repository: tools/automation/pi-mobile
Changeset: 62303caff0ad2f78dd3509b2af7edd1c0a6fda64
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Wed Sep 26 13:18:07 2018 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/62303caff0ad2f78dd3509b2af7edd1c0a6fda64 [^]

Related to issue 38717: when refresh browser in offline, login window is displayed

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/I38717_SessionTimeExpiration.java
---
(0107056)
hgbot   
2018-09-27 17:03   
Repository: tools/automation/pi-mobile
Changeset: 4969a550f4682b783c991e12b4f039b7759c176c
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Thu Sep 27 17:03:36 2018 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/4969a550f4682b783c991e12b4f039b7759c176c [^]

Related to issue 38717

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/I38717_SessionTimeExpiration.java
---