Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028337Retail ModulesWeb POSpublic2014-12-02 17:082014-12-17 09:07
malsasua 
malsasua 
normalminorsometimes
closedfixed 
20Community Appliance
RR14Q3.2 
RR15Q3 
mtaal
No
0028337: when login is done in WEB POS and the first sales is done quickly, JS error is returned
with the module stockvalidation installed

if the login is done and quickly, a line is added to receipt, then JS error is returned

It is not reproducible in Q4
. in backoffice
 . go to window product
  . product: Avalanche Transceiver
  . set the option: "Show the stock screen"
 
. do login in webpos
. quickly select the product "Avalance Transceiver"

JS error is displayed:
 Uncaught TypeError: Cannot read property 'organization' of null. Line number: 43137. File uuid: http://localhost:8082/openbravo/web/js/gen/b7fdd069ef926120f98d1ed9926e15fa_OBMOBCR.js. [^] http://localhost:8082/openbravo/web/js/gen/b7fdd069ef926120f98d1ed9926e15fa_OBMOBCR.js:19668:1 [^]

the line is:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.stockvalidation/file/86a9a9a794ee/web/org.openbravo.retail.stockvalidation/js/modals.js#l26 [^]
and the error is generated because
OB.POS.modelterminal.get('terminal') is undefined
No tags attached.
related to defect 0028350RR15Q1 closed malsasua Error when you login without incremental refresh configured 
diff issue28337.diff (627) 2014-12-09 13:36
https://issues.openbravo.com/file_download.php?file_id=7586&type=bug
Issue History
2014-12-02 17:08malsasuaNew Issue
2014-12-02 17:08malsasuaAssigned To => marvintm
2014-12-02 17:08malsasuaTriggers an Emergency Pack => No
2014-12-09 13:34malsasuaRelationship addedrelated to 0028350
2014-12-09 13:36malsasuaFile Added: issue28337.diff
2014-12-09 18:46hgbotCheckin
2014-12-09 18:46hgbotNote Added: 0072370
2014-12-09 18:46hgbotStatusnew => resolved
2014-12-09 18:46hgbotResolutionopen => fixed
2014-12-09 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cd64c7f9a18d5c8803914208cf65ab00fdbf2682 [^]
2014-12-15 09:31mtaalAssigned Tomarvintm => malsasua
2014-12-15 09:31mtaalNote Added: 0072488
2014-12-15 09:31mtaalStatusresolved => new
2014-12-15 09:31mtaalResolutionfixed => open
2014-12-17 09:06mtaalStatusnew => scheduled
2014-12-17 09:06mtaalNote Added: 0072592
2014-12-17 09:06mtaalfix_in_branch => pi
2014-12-17 09:06mtaalNote Added: 0072593
2014-12-17 09:06mtaalStatusscheduled => resolved
2014-12-17 09:06mtaalFixed in Version => RR15Q3
2014-12-17 09:06mtaalResolutionopen => fixed
2014-12-17 09:07mtaalReview Assigned To => mtaal
2014-12-17 09:07mtaalNote Added: 0072594
2014-12-17 09:07mtaalStatusresolved => closed

Notes
(0072370)
hgbot   
2014-12-09 18:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: cd64c7f9a18d5c8803914208cf65ab00fdbf2682
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Tue Dec 09 18:45:13 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cd64c7f9a18d5c8803914208cf65ab00fdbf2682 [^]

fixed issue 28337: terminal properties are not cleaned (set to null) when properties are loaded from backend in the login

previous to this commit, the properties are set to null and after that they are set to the correct value loaded from backend.
But there are some seconds that the properties are null.
Instead of set the property to null and after that set to the correct value, directly is done the set to the correct value

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0072488)
mtaal   
2014-12-15 09:31   
Fix seems fine, but needs to be set to resolved and closed when doing the Q3/Q4 MP's
(0072592)
mtaal   
2014-12-17 09:06   
.
(0072593)
mtaal   
2014-12-17 09:06   
Resolved
(0072594)
mtaal   
2014-12-17 09:07   
Reviewed