Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027196Retail ModulesOffline Modepublic2014-07-25 11:572014-12-10 12:28
emartinez 
mario_castello 
normalmajoralways
closedfixed 
5
pi 
 
migueldejuana
No
0027196: [RR14Q3] Errors when trying to do an operation that needs connection in offline mode
When trying to do an operation in offline mode that requires connection, there will be errors if the POS status is still online (so it has not been any HTTP request yet).

Let's say i'm online and then i lose internet. POS status is still online as it has not been any http request. Then I click on verified returns, it will open the pop-up (instead of showing the message that it is shown if POS status is offline). If now i click on the search button, the http request is sent (and you see the message of "you lost connection...") and simultaneously there is a red error (see screenshots).
1. Log into web pos and force losing the wifi
2. Check POS status is still online
3. Go to verified returns, observe the popup is opened (if pos status was offline the popup is not even opened and a "nice user message" appears informing this operation needs connection)
4. When popup is opened click on search button

--> observe now the error message in red, and at the same time how pos is detecting now it is offline with the http request
No tags attached.
png Error_Verified.png (200,132) 2014-07-25 11:57
https://issues.openbravo.com/file_download.php?file_id=7087&type=bug
png
Issue History
2014-07-25 11:57emartinezNew Issue
2014-07-25 11:57emartinezAssigned To => marvintm
2014-07-25 11:57emartinezFile Added: Error_Verified.png
2014-07-25 11:57emartinezTriggers an Emergency Pack => No
2014-11-20 18:14malsasuaAssigned Tomarvintm => mario_castello
2014-11-26 18:17mario_castelloStatusnew => scheduled
2014-11-26 18:17mario_castellofix_in_branch => pi
2014-11-27 21:07hgbotCheckin
2014-11-27 21:07hgbotNote Added: 0072089
2014-11-27 21:07hgbotStatusscheduled => resolved
2014-11-27 21:07hgbotResolutionopen => fixed
2014-11-27 21:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9cce73bb38b62f0203a911830634705fa220d1bb [^]
2014-12-01 18:59malsasuaReview Assigned To => malsasua
2014-12-01 18:59malsasuaNote Added: 0072219
2014-12-01 18:59malsasuaStatusresolved => closed
2014-12-01 18:59malsasuaFixed in Version => RR15Q1
2014-12-02 10:57malsasuaNote Added: 0072228
2014-12-02 10:57malsasuaStatusclosed => new
2014-12-02 10:57malsasuaResolutionfixed => open
2014-12-02 10:57malsasuaFixed in VersionRR15Q1 =>
2014-12-02 13:11hgbotCheckin
2014-12-02 13:11hgbotNote Added: 0072237
2014-12-02 13:11hgbotStatusnew => resolved
2014-12-02 13:11hgbotResolutionopen => fixed
2014-12-02 13:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9cce73bb38b62f0203a911830634705fa220d1bb [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d36df42eb02014aae279632d9423eaa7c4505fb0 [^]
2014-12-10 12:28migueldejuanaReview Assigned Tomalsasua => migueldejuana
2014-12-10 12:28migueldejuanaNote Added: 0072390
2014-12-10 12:28migueldejuanaStatusresolved => closed

Notes
(0072089)
hgbot   
2014-11-27 21:07   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9cce73bb38b62f0203a911830634705fa220d1bb
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Thu Nov 27 14:06:24 2014 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9cce73bb38b62f0203a911830634705fa220d1bb [^]

fixed issue 27196: Errors when trying to do an operation that needs connection in offline mode

---
M web/org.openbravo.retail.posterminal/js/components/modalpaidreceipts.js
---
(0072219)
malsasua   
2014-12-01 18:59   
verified
(0072228)
malsasua   
2014-12-02 10:57   
reopened. The fix is not correct. It needs to be reviewed
(0072237)
hgbot   
2014-12-02 13:11   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d36df42eb02014aae279632d9423eaa7c4505fb0
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Tue Dec 02 13:10:34 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d36df42eb02014aae279632d9423eaa7c4505fb0 [^]

fixed issue 27196: var connectedToERP should not be used

---
M web/org.openbravo.retail.posterminal/js/components/modalpaidreceipts.js
---
(0072390)
migueldejuana   
2014-12-10 12:28   
Tested and reviewed in 01e943cefdea