Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038212Retail ModulesWeb POSpublic2018-03-23 13:272018-09-26 13:16
aferraz 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR18Q4RR18Q4 
marvintm
No
0038212: It would be fine to define the time limit a POS terminal can be offline
It would be fine to define the time limit a POS terminal can be offline
N/A
Define with a preference the maximum minutes a POS terminal can be offline.
This preference will have search key "OBPOS_MaxTimeInOffline", and name "Web POS Maximum time which the terminal can be offline"
No tags attached.
related to design defect 0038717 closed jorge-garcia when refresh browser in offline, login window is displayed 
Issue History
2018-03-23 13:27aferrazNew Issue
2018-03-23 13:27aferrazAssigned To => Retail
2018-03-23 13:27aferrazTriggers an Emergency Pack => No
2018-05-25 09:55marvintmProposed Solution updated
2018-06-15 09:49aferrazProposed Solution updated
2018-07-02 17:15migueldejuanaTarget VersionRR18Q3 => RR18Q4
2018-07-30 13:35jorge-garciaStatusnew => scheduled
2018-07-30 13:48jorge-garciaAssigned ToRetail => jorge-garcia
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106331
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/d2d03c88a6708920082b24c006df061724e7c6f7 [^]
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106334
2018-08-14 08:22hgbotCheckin
2018-08-14 08:22hgbotNote Added: 0106336
2018-08-21 15:07marvintmReview Assigned To => marvintm
2018-08-21 15:07marvintmStatusresolved => closed
2018-08-21 15:07marvintmFixed in Version => RR18Q4
2018-09-26 13:16hgbotCheckin
2018-09-26 13:16hgbotNote Added: 0107036
2018-09-26 13:19jorge-garciaRelationship addedrelated to 0038717

Notes
(0106331)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d2d03c88a6708920082b24c006df061724e7c6f7
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Jul 31 13:50:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d2d03c88a6708920082b24c006df061724e7c6f7 [^]

Fixed issue 38212: It would be fine to define the time limit a POS terminal
can be offline

This commit includes:
  * New property reference list called “Web POS Maximum time which the terminal
    can be offline”.
  * This new preference should be define at System level and the value should
    be in minutes.
  * Once set, the preference value is saved in browser’s localstorage.

---
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
---
(0106334)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d3564e0d084e981d40b9eaa4a7493cdac9ded15f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Jul 31 16:02:10 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d3564e0d084e981d40b9eaa4a7493cdac9ded15f [^]

Related to issue 38212: It would be fine to define the time limit a POS terminal
can be offline

This commit includes:
  * New localstorage property with the last successful online request done
    included in request router of type failover and ping.
  * Two new function to set a timeout in which the terminal could be offline
    and to clear the timeout in case the application comes back online.
  * Include a check n the first steps of the login in case the difference
    between the last successful online request and exact moment of the login is
    greater than the maximum time allowed to be offline. In case this condition
    is satisfied, the login process is stopped and the application request to go
    again online.
  * Added two new messages to inform the user the maximum offline time has
    been exceeded.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0106336)
hgbot   
2018-08-14 08:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c6d612ca243cef8b2b59a71a919eedc1606ab15b
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 13 12:30:34 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c6d612ca243cef8b2b59a71a919eedc1606ab15b [^]

Related to issue 38212: It would be fine to define the time limit a POS terminal
can be offline

Change info message to debug message.

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0107036)
hgbot   
2018-09-26 13:16   
Repository: tools/automation/pi-mobile
Changeset: a798a87fcbe6703d192f301bbb422f6ae6a7c756
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Wed Sep 26 13:15:51 2018 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/a798a87fcbe6703d192f301bbb422f6ae6a7c756 [^]

Related to issue 38212: It would be fine to define the time limit a POS terminal can be offline

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/utils/RetailUtils.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/terminals/WebPOSTerminalHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/I38212_OfflineTimeOut.java
---