(0052259)
|
hgbot
|
2012-09-20 13:12
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2048cbce78b51480bb0f3a91701f3d87f3040c6b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Sep 20 13:11:27 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2048cbce78b51480bb0f3a91701f3d87f3040c6b [^]
Fixed issue 21573. The following changes have been made:
- Now the database version change will be detected. If the version changed, the model tables will be dropped.
- To avoid losing data on the client side, a particular check will be done if a change is detected in the application cache: if there are no pending tickets, the page will be reloaded (at this point, a change in the database version will be detected, and the tables will be dropped). If there are pending tickets, a popup will be shown, and the user will be compelled to log in and complete his tickets. Once the page is reloaded, the database version change will be detected, and the tables will be dropped.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/posterminal/templates/cache-manifest.ftl
M web/org.openbravo.retail.posterminal/index.html
M web/org.openbravo.retail.posterminal/js/components/commonbuttons.js
M web/org.openbravo.retail.posterminal/js/data/dal.js
M web/org.openbravo.retail.posterminal/js/login/view/login.js
---
|
|
|
This issue has now been fixed, which means that the system will automatically recreate the database when the version of the database itself has changed.
It is very important that System administrators understand that it is their responsibility to ensure that all POS terminals have no pending tickets before updating the POS module. After the POS module has been updated, the client will display a warning to the user in case there are still pending tickets, and the user has only one shot to complete them. After that, the next time the page is reloaded, the application cache triggers in, and the database will be recreated, so all pending data will be lost. |
|