This question has been flagged
1 Reply
4967 Views

This question is primarily asked to figure out the best practices for what to do during a network access failure for the point of service module. If the network goes down, how well will the POS work? It seems to store purchases locally and then a user is able to validate the purchases once network access is reestablished.

Where is this data stored? Does it use javascript variables in the web browser? Does it use HTML5 storage? Does it use another storage technology? What happens if the browser is closed?

How long will this data persist? How many off network purchases can be performed (how much data can be stored)?

How does a network access failure effect other modules?

Avatar
Discard
Best Answer

The POS module in 7.0 (and probably 6.0 and 6.1) uses LocalStorage, which is a feature supported by most modern browsers that allows the application to store persistent data. This data stays on the computer until either 1) the application deletes it or 2) the user deletes it. So, it is persistent across sessions, reboots, crashes, etc. Most browsers use the browser cache for this data, so unless you delete the cache it should always be available. The size of the LocalStorage is determined by the Browser, but it's usually around 5 MB.

The POS module loads all the data it needs, such as Products, at the beginning of the session, and as you make sales the data is transmitted to the OpenERP server. If you lose connectivity, the data is stored in LocalStorage and the POS will try to resend it periodically. When you regain connectivity the sales data stored in LocalStorage will be transmitted to the OpenERP server.

Avatar
Discard