Openbravo Issue Tracking System - Retail Modules
View Issue Details
0022331Retail ModulesWeb POSpublic2012-11-16 13:442012-11-27 12:35
marvintm 
marvintm 
normalcriticalhave not tried
closedfixed 
5
 
RMP17 
No
0022331: The Web POS is either not recovering the session correctly after going offline, or closing sessions prematurely
It seems the Web POS is either not recovering an active session when it momentarily loses connectivity, or closing sessions prematurely.

In either case, it asks the user to reenter his credentials with too much frequency, even in cases in which the network is relatively stable.
- Work on a network which sometimes is briefly lost
- Realize that the message to "reenter your credentials" is shown, and is probably unneeded, because afterwards most of the times the login page is not shown, but the application logs in automatically.
No tags attached.
Issue History
2012-11-16 13:44marvintmNew Issue
2012-11-16 13:44marvintmAssigned To => marvintm
2012-11-16 15:55hgbotCheckin
2012-11-16 15:55hgbotNote Added: 0054297
2012-11-16 15:55hgbotStatusnew => resolved
2012-11-16 15:55hgbotResolutionopen => fixed
2012-11-16 15:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/896912619153450f53a0cdfa4817bfeba27f85d5 [^]
2012-11-16 16:59hgbotCheckin
2012-11-16 16:59hgbotNote Added: 0054298
2012-11-18 04:52dbazNote Added: 0054300
2012-11-18 04:52dbazStatusresolved => new
2012-11-18 04:52dbazResolutionfixed => open
2012-11-20 18:15hgbotCheckin
2012-11-20 18:15hgbotNote Added: 0054351
2012-11-20 18:15hgbotStatusnew => resolved
2012-11-20 18:15hgbotResolutionopen => fixed
2012-11-20 18:15hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/896912619153450f53a0cdfa4817bfeba27f85d5 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/91fd15bea60d17e2613f7ec8046a4ff2c457d48a [^]
2012-11-27 10:19adrianromeroTarget Version => RMP17
2012-11-27 11:29hgbotCheckin
2012-11-27 11:29hgbotNote Added: 0054525
2012-11-27 11:29hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/91fd15bea60d17e2613f7ec8046a4ff2c457d48a [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-linediscount-discount/rev/91fd15bea60d17e2613f7ec8046a4ff2c457d48a [^]
2012-11-27 12:35migueldejuanaNote Added: 0054539
2012-11-27 12:35migueldejuanaStatusresolved => closed

Notes
(0054297)
hgbot   
2012-11-16 15:55   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 896912619153450f53a0cdfa4817bfeba27f85d5
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Nov 16 15:55:43 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/896912619153450f53a0cdfa4817bfeba27f85d5 [^]

Fixed issue 22331. Now the user will not be warned that the connection came back unless the session was really lost

---
M web/org.openbravo.retail.posterminal/js/components/terminal.js
---
(0054298)
hgbot   
2012-11-16 16:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: fcc4f0a1df2dfdb030b9c27726756911e41a3ce5
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Nov 16 16:59:05 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fcc4f0a1df2dfdb030b9c27726756911e41a3ce5 [^]

Related to issue 22331. Orders will be automatically saved if the connection returns.

---
M web/org.openbravo.retail.posterminal/js/components/terminal.js
---
(0054300)
dbaz   
2012-11-18 04:52   
The fix is not good.

Having a fix with several concatenated "child" structure is a way to guarantee that if the final component (or any in the middle) is moved (from a container to another one), the action is not going to be performed.

There are several possibilities to ensure that always is going to work:

If the component is a direct child of the component, give the last child a "name" (in case it doesn't have already one), and do something like
OB.POS.terminal.$.<given-name>.model.processChangedCustomers();

If it is not a direct child, you can define an event listener in the last child and then from OB.POS.terminal set a "waterfall". The WebPOS is plenty of them, so you can check how are they made. Also you can consult here to obtain more information about how it works:
http://enyojs.com/docs/events.html [^]
(0054351)
hgbot   
2012-11-20 18:15   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 91fd15bea60d17e2613f7ec8046a4ff2c457d48a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Nov 20 18:15:41 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/91fd15bea60d17e2613f7ec8046a4ff2c457d48a [^]

Fixed issue 22331. Orders will be automatically saved if the connection returns.

---
M web/org.openbravo.retail.posterminal/js/components/terminal.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/utilities.js
---
(0054525)
hgbot   
2012-11-27 11:29   
Repository: erp/pmods/org.openbravo.retail.posterminal-linediscount-discount
Changeset: 91fd15bea60d17e2613f7ec8046a4ff2c457d48a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Nov 20 18:15:41 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-linediscount-discount/rev/91fd15bea60d17e2613f7ec8046a4ff2c457d48a [^]

Fixed issue 22331. Orders will be automatically saved if the connection returns.

---
M web/org.openbravo.retail.posterminal/js/components/terminal.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/utilities.js
---
(0054539)
migueldejuana   
2012-11-27 12:35   
Reviewed at @cde372d8864d