Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036963Retail ModulesWeb POSpublic2017-09-27 17:332017-10-26 13:34
malsasua 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
30Openbravo Appliance 14.04
 
RR18Q1 
marvintm
No
0036963: Prevent a premature execution of runSyncProcess during the login process (returnToOnline)
In poor connection enviroments, we could lost and recover the connection during the login. Recovering the connection forces runSynchProcess execution and in the postProcessFunction of Cashup model we require terminal model.
If that runSynchProccess launched in parallel with the login process, reaches the point where we require terminal before login process loads the terminal, we get an error.
n/a
Do not execute runSynchProcess till we finish logging in.
No tags attached.
related to defect 0037386 closed migueldejuana [Procurement] Prevent a premature execution of processPaidOrder during the login process (returnToOnline) 
diff returnToOnlinePosterminal.diff (1,075) 2017-09-27 17:34
https://issues.openbravo.com/file_download.php?file_id=11111&type=bug
Issue History
2017-09-27 17:33malsasuaNew Issue
2017-09-27 17:33malsasuaAssigned To => Retail
2017-09-27 17:33malsasuaResolution time => 1508018400
2017-09-27 17:33malsasuaTriggers an Emergency Pack => No
2017-09-27 17:34malsasuaFile Added: returnToOnlinePosterminal.diff
2017-09-27 17:51migueldejuanaSummaryPrevent the execution in pararel of runSyncProcess during the login process => Prevent a premature execution of runSyncProcess during the login process (returnToOnline)
2017-09-27 17:51migueldejuanaDescription Updatedbug_revision_view_page.php?rev_id=16005#r16005
2017-09-27 17:51migueldejuanaProposed Solution updated
2017-09-28 14:24ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-09-28 14:24ranjith_qualiantech_comStatusnew => scheduled
2017-10-04 08:06hgbotCheckin
2017-10-04 08:06hgbotNote Added: 0099747
2017-10-04 08:06hgbotStatusscheduled => resolved
2017-10-04 08:06hgbotResolutionopen => fixed
2017-10-04 08:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a20166c58ab8626a1e549bae681ca56dea8304 [^]
2017-10-13 14:06marvintmNote Added: 0099906
2017-10-13 14:06marvintmStatusresolved => new
2017-10-13 14:06marvintmResolutionfixed => open
2017-10-23 05:30ranjith_qualiantech_comStatusnew => scheduled
2017-10-23 09:12hgbotCheckin
2017-10-23 09:12hgbotNote Added: 0099982
2017-10-23 09:12hgbotStatusscheduled => resolved
2017-10-23 09:12hgbotResolutionopen => fixed
2017-10-23 09:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a20166c58ab8626a1e549bae681ca56dea8304 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/61c87e5f57f96cbefdc1104a419bbcf02d058159 [^]
2017-10-26 13:34marvintmReview Assigned To => marvintm
2017-10-26 13:34marvintmStatusresolved => closed
2017-10-26 13:34marvintmFixed in Version => RR18Q1
2017-11-27 09:41migueldejuanaRelationship addedrelated to 0037386

Notes
(0099747)
hgbot   
2017-10-04 08:06   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 53a20166c58ab8626a1e549bae681ca56dea8304
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Oct 04 11:20:04 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a20166c58ab8626a1e549bae681ca56dea8304 [^]

Fixed issue 36963 : Run Sync process after login completion

* If POS backs to online, Run Sync process should be called after login completion

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0099906)
marvintm   
2017-10-13 14:06   
There are currently two problems with the fix:

- If connection is lost, and comes back, during login, runSyncProcess is not executed, and this is correct, because it's actually the goal of the fix. However, in this case, runSyncProcess should then be called at the end of the login process, and this never happens. The reason is this line:

  if (OB.MobileApp.model.get('isLoggingIn')) {

When login is finished, isLoggingIn is changed to false, so the runSyncProcess is not triggered.

- The second problem is that the on event is supposed to be removed by the off statement, but this also never happens. The reason is that the callback passed as a parameter is not correct instead of the this.returnToOnline function it should be the function passed as callback to the "on" statement.
(0099982)
hgbot   
2017-10-23 09:12   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 61c87e5f57f96cbefdc1104a419bbcf02d058159
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Oct 23 12:30:40 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/61c87e5f57f96cbefdc1104a419bbcf02d058159 [^]

Fixed issue 36963 : Run Sync process after login completion

* If POS backs to online, Run Sync process should be called after login completion

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---