Openbravo Issue Tracking System - POS2
View Issue Details
0049962POS2POSpublic2022-08-05 11:052022-08-06 13:34
normalcriticalhave not tried
Coding ( Testing )
2022-08-02 [^]
0049962: Infinite loading screen on login if initial count has not been completed and a logout is performed
If there is an initial count pending, and we logout, on the next login the application doesn't load, it is in an infinite "Forcing refresh of local database..." state, which doesn't end until you refresh the application and will happen again if you logout and login without completing the initial count.

The problem seems to be that in file initialCountOnExitPopup.js in pos2 module we are awaiting this: OB.App.View.DialogUIHandler.askMultiOptionDialog

This is not present when we login, as the dialog .jsx has not been registered or started yet, that means will await the dialog and will never show it, leaving the application in a frozen state. We should not show the dialog if we're on the login screen/process.
1. Open WebPOS and login
2. Complete a cashup or clear site data(as shown in attached gif)
3. Login again, but do not finish the initial count. Logout without finishing the initial count.
4. Login again, see that it is frozen in Forcing refresh of local database... state.
Do not execute OB.App.View.DialogUIHandler.askMultiOptionDialog in initialCountOnExitPopup.js if we're in the login process.
No tags attached.
caused by defect 0049658 closed radhakrishnan Retail Modules Possible to sell without having made a cash opening 
gif infinite load on login after finishing masterdata refresh.gif (1,640,467) 2022-08-05 11:08
Issue History
2022-08-05 11:05cbernerNew Issue
2022-08-05 11:05cbernerAssigned To => Retail
2022-08-05 11:05cbernerRegression level => Coding ( Testing )
2022-08-05 11:05cbernerRegression date => 2022-07-15
2022-08-05 11:05cbernerRegression introduced by commit => [^]
2022-08-05 11:05cbernerTriggers an Emergency Pack => No
2022-08-05 11:05cbernerRelationship addedcaused by 0049658
2022-08-05 11:08cbernerFile Added: infinite load on login after finishing masterdata refresh.gif
2022-08-05 11:24cbernerRegression date2022-07-15 => 2022-08-02
2022-08-05 11:30marvintmStatusnew => scheduled
2022-08-05 11:30marvintmAssigned ToRetail => radhakrishnan
2022-08-05 16:05hgbotNote Added: 0139927
2022-08-06 13:34hgbotResolutionopen => fixed
2022-08-06 13:34hgbotStatusscheduled => closed
2022-08-06 13:34hgbotNote Added: 0139934
2022-08-06 13:34hgbotFixed in Version => 22Q4
2022-08-06 13:34hgbotNote Added: 0139935

2022-08-05 16:05   
Merge Request created: [^]
2022-08-06 13:34   
Merge request merged: [^]
2022-08-06 13:34   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: f96cc7a9007d83f0ce06c6f064e2788057edac4d
Author: Radhakrishnan Seeman <>
Date: 06-08-2022 11:34:30
URL: [^]

Fixed ISSUE-49962: Skipped InitialCountMandatory Popup
* If state doesn't have an initialCountInProgress, then InitialCountMandatory popup should be skipped
* Added initialCountInProgress in Jest test

M web-jspack/org.openbravo.pos2/src/components/InitialCountWindow/initialCountOnExitPopup.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/SwitchToInitialCountWindow.test.js