Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041416Retail ModulesWeb POSpublic2019-07-22 15:402019-08-08 15:30
barbararoncato 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR19Q4 
marvintm
No
0041416: Javascript error when opening terminal, after adding a new Business Date
Javascript error when opening terminal, after adding a new Business Date
Steps to reproduce:
Have a terminal with a Business Date prior than the current date.

1. Login to WebPOS and do a cash up
--> Put the system Offline
2. Open terminal
3. Add a new business date
4. Click on Done
---> Javascript error

Video: https://drive.google.com/file/d/1NGArdPnSDc2AQuJ9xPzcaFtTU6ELkbUa/view [^]
No tags attached.
Issue History
2019-07-22 15:40barbararoncatoNew Issue
2019-07-22 15:40barbararoncatoAssigned To => Retail
2019-07-22 15:40barbararoncatoTriggers an Emergency Pack => No
2019-07-22 15:43guillermogilResolution time => 1564956000
2019-07-22 15:50barbararoncatoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19165#r19165
2019-07-25 10:10ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-07-25 10:10ranjith_qualiantech_comStatusnew => scheduled
2019-07-26 12:34adrianromeroNote Added: 0113676
2019-08-08 07:39hgbotCheckin
2019-08-08 07:39hgbotNote Added: 0113889
2019-08-08 13:12ranjith_qualiantech_comStatusscheduled => resolved
2019-08-08 13:12ranjith_qualiantech_comResolutionopen => fixed
2019-08-08 15:30marvintmReview Assigned To => marvintm
2019-08-08 15:30marvintmStatusresolved => closed
2019-08-08 15:30marvintmFixed in Version => RR19Q4

Notes
(0113676)
adrianromero   
2019-07-26 12:34   
This issue is reproducible only when connection is lost before clicking DONE button in open till window. In this case the Business date change dialog appears after finishing the open till process and the exception appears.

If the connection is lost before login in, the Business date change dialog appears BEFORE starting the open till window and no exception appears.
(0113889)
hgbot   
2019-08-08 07:39   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: bfd71829af34660c3e3242776713a763d5399bd1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Aug 08 11:09:30 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/bfd71829af34660c3e3242776713a763d5399bd1 [^]

Related to issue 41416 : ModelReady hook should not be called if OpenTill window is not rendened

* When OpenTill window is rendered, hook 'ModelReady:loginCashUp' will be registered.
  When POS navigate to SetBusinessDate window and again to OpenTill window, then
  hook 'ModelReady:loginCashUp' will be registered again.
  When hook 'ModelReady:loginCashUp' is called, first registered hook will not have any reference
  because OpenTill window is destroyed.
  Second registered hook will have the Current OpenTill window reference.

---
M web/org.openbravo.retail.sessions/js/countcash/tabcountcash.js
---