Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041018
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2019-05-27 12:442019-06-06 11:44
ReporterucarrionView Statuspublic 
Assigned TojavierRodriguez 
PriorityhighResolutionfixedFixed in VersionRR19Q2.1
StatusclosedFix in branchFixed in SCM revisioncb05245f0385
ProjectionnoneETAnoneTarget VersionRR19Q2.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0041018: Javascript error when changing terminal in synchronized mode

DescriptionA javascript error raises when changing terminal being activated the synchronized mode

video --> https://drive.google.com/file/d/1J8aFztVl8AhLR0uS42_k_nPWueNHm7Dh/view [^]
Steps To Reproduce-Set 'WebPOS Synchronized Mode' preference to 'Y'
-Login a terminal
-Logout and change the URL to another one
-Login the new terminal
-The loading is locked
-After refreshing the javascript error raises
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0040955 closedjavierRodriguez Javascript error when changing terminal in synchronized mode 

-  Notes
(0112371)
hgbot (developer)
2019-06-04 10:35

Repository: retail/backports/3.0RR19Q2.1/org.openbravo.retail.posterminal
Changeset: 4d1401f84fb12d12a658ab0e21f62f91e87993b3
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Tue Jun 04 10:35:13 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2.1/org.openbravo.retail.posterminal/rev/4d1401f84fb12d12a658ab0e21f62f91e87993b3 [^]

Related to issue 41018: Javascript error when changing terminal in synchronized mode

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0112372)
hgbot (developer)
2019-06-04 10:35

Repository: retail/backports/3.0RR19Q2.1/org.openbravo.mobile.core
Changeset: cb05245f0385af5f8ad1c81f4fa1c39302c895b0
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Tue Jun 04 10:34:06 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2.1/org.openbravo.mobile.core/rev/cb05245f0385af5f8ad1c81f4fa1c39302c895b0 [^]

Fixed issue 41018: Javascript error when changing terminal in synchronized mode

When we login and logout in WebPOS with an specific terminal and then we change teh terminal,
the application force us to clean cache. This clean cache just delete all localstorage data, but
it does not delete the local database.

Finally, when we do login again in the new terminal, the application is going to recreate the localdatabase
because the is not any checksum in localstorage. Due to we have synchronized mode, WebPOS will try sync all
synchronized models that we have. The real issue is WebPOS do not have set the terminal and it try to take the terminal
id.

This fix consist in just put the terminal id if it is set in the applicaton. If it does not, the application
set the terminal id in teh data to sync as null. There is not any problem to fix this issue with this solution because
the backend does not expect a terminal id in the json that receive.

This fix consist in just put the terminal id if it is set in the applicaton. If it does not, the application
set the terminal id in teh data to sync as null. There is not any problem to fix this issue with this solution because
the backend does not expect a terminal id in the json that receive.

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---

- Issue History
Date Modified Username Field Change
2019-06-04 10:29 javierRodriguez Type defect => backport
2019-06-04 10:29 javierRodriguez Target Version => RR19Q2.1
2019-06-04 10:35 hgbot Checkin
2019-06-04 10:35 hgbot Note Added: 0112371
2019-06-04 10:35 hgbot Checkin
2019-06-04 10:35 hgbot Note Added: 0112372
2019-06-04 10:35 hgbot Status scheduled => resolved
2019-06-04 10:35 hgbot Resolution open => fixed
2019-06-04 10:35 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5baff72ff876f7c729ed08f18f09f2156b81bd2d [^] => http://code.openbravo.com/retail/backports/3.0RR19Q2.1/org.openbravo.mobile.core/rev/cb05245f0385af5f8ad1c81f4fa1c39302c895b0 [^]
2019-06-06 11:44 marvintm Review Assigned To => marvintm
2019-06-06 11:44 marvintm Status resolved => closed
2019-06-06 11:44 marvintm Fixed in Version => RR19Q2.1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker