Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031014Retail ModulesWeb POSpublic2015-10-01 18:092015-10-13 19:38
aaroncalero 
mario_castello 
highmajoralways
closedfixed 
5
pi 
RR16Q1 
marvintm
Coding ( Testing )
No
0031014: Web POS login broken if the application is refreshed after loading a Layaway
When a Layaway is loaded from the backend, and the web POS is refreshed, a javascript error is shown when loading the application and the process stops:

e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:2382 TypeError: Cannot read property 'get' of null
    at Object.enyo.kind.create (https://livebuilds.openbravo.com/retail_pi_pgsql//web/js/gen/e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:28008:46 [^])
    at Object.enyo.kind.constructed (https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.mobile.core/build/enyo.js:524:27 [^])
    at Object.ctor (https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.mobile.core/build/enyo.js:399:107 [^])
    at Function.enyo.create.enyo.Component.create [as create] (https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.mobile.core/build/enyo.js:640:95 [^])
    at Object.enyo.kind._createComponent (https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.mobile.core/build/enyo.js:587:53 [^])
    at Object.enyo.kind.createComponent (https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.mobile.core/build/enyo.js:590:13 [^])
    at Object.enyo.kind._createComponentForModel (https://livebuilds.openbravo.com/retail_pi_pgsql//web/js/gen/e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:10757:24 [^])
    at Object.enyo.kind._addModelToCollection (https://livebuilds.openbravo.com/retail_pi_pgsql//web/js/gen/e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:10748:12 [^])
    at Object.<anonymous> (https://livebuilds.openbravo.com/retail_pi_pgsql//web/js/gen/e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:10645:18 [^])
    at Array.forEach (native); line: Object.OB.UTIL.showError (https://livebuilds.openbravo.com/retail_pi_pgsql//web/js/gen/e103d6b6ca5a12dc3b80312b2617203c_WebPOS.js:9548:6 [^]) (*,+)
Login in webpos.
Load a layaway from the backend (Menu > Layaways; search and select any of the layaways found).
Once the Layaway has loaded, refresh the page.
The login/loading process breaks with the mentioned error.

Checking the local database, the previously loaded layaway is still there, but the json field is empty.
No tags attached.
depends on backport 0031132RR15Q4 closed marvintm Web POS login broken if the application is refreshed after loading a Layaway 
Issue History
2015-10-01 18:09aaroncaleroNew Issue
2015-10-01 18:09aaroncaleroAssigned To => Retail
2015-10-01 18:09aaroncaleroResolution time => 1444255200
2015-10-01 18:09aaroncaleroRegression level => Coding ( Testing )
2015-10-01 18:09aaroncaleroTriggers an Emergency Pack => No
2015-10-01 18:09aaroncaleroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9576#r9576
2015-10-02 15:45OrekariaStatusnew => acknowledged
2015-10-07 11:01avicenteIssue Monitored: avicente
2015-10-07 12:13ageteIssue Monitored: agete
2015-10-07 19:04mario_castelloAssigned ToRetail => mario_castello
2015-10-07 19:04mario_castelloStatusacknowledged => scheduled
2015-10-10 18:56hgbotCheckin
2015-10-10 18:56hgbotNote Added: 0080935
2015-10-10 18:56hgbotStatusscheduled => resolved
2015-10-10 18:56hgbotResolutionopen => fixed
2015-10-10 18:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/11ec4a848310c5e0899dbeb6c121eedad151aa2b [^]
2015-10-10 19:12hgbotCheckin
2015-10-10 19:12hgbotNote Added: 0080936
2015-10-13 10:25OrekariaReview Assigned To => marvintm
2015-10-13 10:26OrekariaStatusresolved => new
2015-10-13 10:26OrekariaResolutionfixed => open
2015-10-13 10:26OrekariaStatusnew => scheduled
2015-10-13 10:26OrekariaStatusscheduled => resolved
2015-10-13 10:26OrekariaFixed in Version => RR16Q1
2015-10-13 10:26OrekariaResolutionopen => fixed
2015-10-13 19:38marvintmStatusresolved => closed

Notes
(0080935)
hgbot   
2015-10-10 18:56   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 11ec4a848310c5e0899dbeb6c121eedad151aa2b
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Sat Oct 10 10:55:47 2015 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/11ec4a848310c5e0899dbeb6c121eedad151aa2b [^]

Fixed issue 31014: Set the json to receipt when load a layaway

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0080936)
hgbot   
2015-10-10 19:12   
Repository: tools/automation/pi-mobile
Changeset: e41e968087b137a26fed2eb4dcba03f4cc216311
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Sat Oct 10 11:11:32 2015 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/e41e968087b137a26fed2eb4dcba03f4cc216311 [^]

Related to issue 31014: Automation test to load a layaway and refresh the POS

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31014_LayawayLoadAndRefresh.java
---