Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043467Retail ModulesSessionspublic2020-03-10 13:512020-03-31 18:53
0043467: Store closed but till opened in case login is done when being offline
In case your store is closed and you do a login offline, the till will be opened but the store will remain closed

Update: 24-03-2020
After some verifications, this behavior is correct and it is the expected behavior. Web POS allows to login offline using sessions and in that circumstance terminal cannot verify is store is opened of not, so the till is opened offline. Once this terminal recover the connection, the till creation is synchronized and it can happend having the store closed.

When above situation happen, a closed store can have open tills. This situation does not allow to open stores from backend (Error: there are open tills). The error is correct but ERP is not allowing to close tills since the button to do it is not shown when store is closed.

See proposed solution
1. Log in to the terminal, create an order and do a cashup
2. Access backoffice and run "Close Store" process (in case needed close tills still opened)
3. Access to developers tool and set Network= offline
4. Log in to the terminal. You will be carried to open till window and continue the process to open the till until Good Job is received and you are completely logged in the terminal
5. Access backoffice to Terminals and Till status and realize that Terminal status is Closed and Open Tills is NO (because we are still offline)
6. Access to developers tool and set Network= online
7. Force going to online in the terminal
8. Access backoffice to Terminals and Till status and realize that Terminal status is Closed and Open Tills is YES (because we are still offline)

NOTE: The same problem is also reproducible in case the terminal has NOT defined an active payment of type cash and set as InitialCountCash. In that case instead of navigating to "logincountcash" screen, the method "AvoidCountCashAndSendOpenTill" is directly executed. So the fix should be applied in both flows
It is important to understand the situation before create the fix.

Terminals and till windows should show the button "Close till" when there are opened tills even in the store is closed.
No tags attached.
Issue History
2020-03-10 13:51maiteNew Issue
2020-03-10 13:51maiteAssigned To => Retail
2020-03-10 13:51maiteTriggers an Emergency Pack => No
2020-03-10 13:52maiteIssue Monitored: networkb
2020-03-11 09:22hgbotCheckin
2020-03-11 09:22hgbotNote Added: 0118495
2020-03-11 14:48maiteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20541#r20541
2020-03-24 12:20guilleaerDescription Updatedbug_revision_view_page.php?rev_id=20604#r20604
2020-03-24 12:20guilleaerProposed Solution updated
2020-03-25 12:14guilleaerDescription Updatedbug_revision_view_page.php?rev_id=20614#r20614
2020-03-30 20:42hgbotCheckin
2020-03-30 20:42hgbotNote Added: 0118885
2020-03-30 20:42hgbotStatusnew => resolved
2020-03-30 20:42hgbotResolutionopen => fixed
2020-03-30 20:42hgbotFixed in SCM revision => [^]
2020-03-31 08:58marvintmAssigned ToRetail => alekosmp86
2020-03-31 18:53guilleaerReview Assigned To => guilleaer
2020-03-31 18:53guilleaerStatusresolved => closed
2020-03-31 18:53guilleaerFixed in Version => RR20Q2

2020-03-11 09:22   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 3064857a1d679bd198b8978030b90de1ec44a02a
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at>>
Date: Wed Mar 11 09:21:27 2020 +0100
URL: [^]

related to ISSUE 43467: Add log to the opentill process

M web/org.openbravo.retail.sessions/js/components/loginhook.js
M web/org.openbravo.retail.sessions/js/countcash/countcash-model.js
2020-03-30 20:42   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: af9f36e890e7ff59020ab6a9ac60142b8f8e8f76
Author: Alejandro <alekosmp86 <at>>
Date: Mon Mar 30 14:40:32 2020 -0400
URL: [^]

Fixed BUG-43467: Close Tills button in Terminal and Tills Status window is shown
even if the store is closed. The button is only shown if there are open tills,
otherwise it remains hidden

M src-db/database/sourcedata/AD_FIELD.xml