Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032591Retail ModulesWeb POSpublic2016-04-05 06:262016-04-18 09:25
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
RR16Q3 
migueldejuana
No
0032591: Multi-Server: show better message when transitioning to online/offline
In a multi-server setup with offline/online ([1]) transitioning the webpos is prevented to perform any actions when the server is transitioning from offline to online.

However currently we prevent this by showing the loading page. This does not give enough information. The system should show a message box, preferably the message box can not be closed, the user has to refresh the page. If the message box can be closed then it is still fine as the user does any new action the message box will reappear. Note that several requests can happen at the same time, each detecting transitioning offline/online.

[1]
http://wiki.openbravo.com/wiki/Retail:Store_Server#Online_.26_Offline_concepts_of_Store_Servers [^]
Setup multi-server with 2 servers: central and store
Log-in with webpos on the store server
Do some actions
Stop central
Detect what happens when the user does the next action
Instead of the loading message show a message in a message box:

The store is transitioning to offline. You can not perform any actions at this time. Please retry in a few minutes.

or for online:

The store is transitioning to online. You can not perform any actions at this time. Please retry in a few minutes.
No tags attached.
png Selection_181.png (80,359) 2016-04-05 06:26
https://issues.openbravo.com/file_download.php?file_id=9236&type=bug
png
Issue History
2016-04-05 06:26mtaalNew Issue
2016-04-05 06:26mtaalAssigned To => mtaal
2016-04-05 06:26mtaalFile Added: Selection_181.png
2016-04-05 06:26mtaalTriggers an Emergency Pack => No
2016-04-05 19:50mtaalReview Assigned To => migueldejuana
2016-04-06 13:41hgbotCheckin
2016-04-06 13:41hgbotNote Added: 0085469
2016-04-06 13:41hgbotStatusnew => resolved
2016-04-06 13:41hgbotResolutionopen => fixed
2016-04-06 13:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0d2bce8c2a42a5c391b005a0e78ec7ce6c2856ac [^]
2016-04-06 13:41hgbotCheckin
2016-04-06 13:41hgbotNote Added: 0085470
2016-04-06 13:41hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0d2bce8c2a42a5c391b005a0e78ec7ce6c2856ac [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9077d31677b25b18b7d9bb52ffa2ee36a093b1ca [^]
2016-04-18 09:25migueldejuanaNote Added: 0085692
2016-04-18 09:25migueldejuanaStatusresolved => closed

Notes
(0085469)
hgbot   
2016-04-06 13:41   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0d2bce8c2a42a5c391b005a0e78ec7ce6c2856ac
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Apr 05 19:51:47 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0d2bce8c2a42a5c391b005a0e78ec7ce6c2856ac [^]

Fixes issue 32591: Multi-Server: show better message when transitioning to online/offline
Pass exception to logger

---
M src/org/openbravo/mobile/core/MobileCoreComponentServlet.java
---
(0085470)
hgbot   
2016-04-06 13:41   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 9077d31677b25b18b7d9bb52ffa2ee36a093b1ca
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Apr 05 19:55:43 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9077d31677b25b18b7d9bb52ffa2ee36a093b1ca [^]

Fixes issue 32591: Multi-Server: show better message when transitioning to online/offline
Show confirmation box with correct message when transition reply is received from server.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0085692)
migueldejuana   
2016-04-18 09:25   
Tested and reviewed