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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049888
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POScriticalsometimes2022-07-27 13:062024-04-11 13:37
Reporterasier_perezView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049888: Cash Up Error prevents from logging in after doing Cash Up, refresh page and trying to log in very quickly

DescriptionWhen doing Cash Up and then refreshing the page and logging in quickly, sometimes the next error message appears: 'There are cashup errors in this terminal'. It prevents from logging in again until the error is deleted from the database or backend.

This is mainly due to application source code updates. When the source code is updated, the service-worker sends a message to the web to purge the state on refresh/login, that results in losing the local cashup, which allows us to work while we have errors in backend.
Steps To Reproduce## Updated steps to reproduce
1. Login WebPOS and complete a cashup(if you can complete it with errors better).
2. (For this step we need to have cashup errors in backend). Open DevTools by pressing F12 and run the following line to force an application source code update "localStorage.removeItem("stateIsConsistentWithLocalStorage")"
3. Refresh the application and login, you'll see the "there are cashup errors in the terminal" because the local state has been purged due to an application update.


## Original steps to reproduce
This error can be reproduced in live builds (POS2 with modules), and it could require several tries following the next steps.

0- Log in Web POS and leave a till open; this step prevents the Close Store dialog to appear later in POS2 and causes the cash up process to be faster, which is important to reproduce the error
1- Go to POS2 and log in
2- Do cash up normally and just after clicking on the 'Finish' button, press F5 to refresh the page
3- Repeat steps 1 and 2 until the error appears, preventing you to log in

Note: For now, it is not very clear what the timing is to press F5, and the error could not occur after several tries.
Proposed SolutionTBD: An option would be to not purge the state entirely or keep some things between version updates.
TagsNo tags attached.
Attached Files? file icon cashUpError.json [^] (4,279 bytes) 2022-08-16 14:18
txt file icon cashUpErrorMessage.txt [^] (1,495 bytes) 2022-08-16 14:27 [Show Content]
png file icon cashup.png [^] (30,773 bytes) 2023-03-14 17:26

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2022-07-27 13:06 asier_perez New Issue
2022-07-27 13:06 asier_perez Assigned To => Retail
2022-07-27 13:06 asier_perez File Added: reproduceCashUpError.spec.js
2022-07-27 13:06 asier_perez Triggers an Emergency Pack => No
2022-07-27 14:00 asier_perez Summary Error when executing Cash Up Cypress tests several times => Cash Up Error prevents from logging in after doing Cash Up and trying to log in very quickly
2022-07-27 14:00 asier_perez Description Updated View Revisions
2022-07-27 14:00 asier_perez Steps to Reproduce Updated View Revisions
2022-07-27 14:00 asier_perez Proposed Solution updated
2022-07-27 14:01 asier_perez Description Updated View Revisions
2022-07-27 14:03 asier_perez Description Updated View Revisions
2022-07-27 14:03 asier_perez Description Updated View Revisions
2022-07-27 14:04 asier_perez Steps to Reproduce Updated View Revisions
2022-07-27 14:05 asier_perez Description Updated View Revisions
2022-07-27 14:07 asier_perez Steps to Reproduce Updated View Revisions
2022-07-27 14:08 asier_perez Steps to Reproduce Updated View Revisions
2022-07-28 09:34 asier_perez Steps to Reproduce Updated View Revisions
2022-07-28 09:46 asier_perez Severity critical => major
2022-07-28 09:46 asier_perez Steps to Reproduce Updated View Revisions
2022-07-28 09:54 asier_perez Description Updated View Revisions
2022-07-28 09:54 asier_perez Steps to Reproduce Updated View Revisions
2022-07-28 09:58 asier_perez Description Updated View Revisions
2022-07-28 10:21 asier_perez Steps to Reproduce Updated View Revisions
2022-08-16 11:04 asier_perez Steps to Reproduce Updated View Revisions
2022-08-16 14:18 asier_perez File Added: cashUpError.json
2022-08-16 14:27 asier_perez Description Updated View Revisions
2022-08-16 14:27 asier_perez File Added: cashUpErrorMessage.txt
2022-08-16 14:29 asier_perez Description Updated View Revisions
2022-11-28 16:04 andre_montenegro Summary Cash Up Error prevents from logging in after doing Cash Up and trying to log in very quickly => Cash Up Error prevents from logging in after doing Cash Up, refresh page and trying to log in very quickly
2022-11-28 16:04 andre_montenegro Description Updated View Revisions
2023-03-14 17:25 asier_perez Description Updated View Revisions
2023-03-14 17:25 asier_perez Steps to Reproduce Updated View Revisions
2023-03-14 17:25 asier_perez File Deleted: reproduceCashUpError.spec.js
2023-03-14 17:26 asier_perez File Added: cashup.png
2023-03-14 17:29 asier_perez Steps to Reproduce Updated View Revisions
2023-03-14 17:35 asier_perez Steps to Reproduce Updated View Revisions
2023-05-04 17:04 AugustoMauch Assigned To Retail => cberner
2023-05-18 17:53 cberner Description Updated View Revisions
2023-05-18 17:53 cberner Steps to Reproduce Updated View Revisions
2023-05-18 17:53 cberner Proposed Solution updated
2024-04-11 13:37 asier_perez Severity major => critical


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker