Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031132Retail ModulesWeb POSpublic2015-10-01 18:092015-10-23 12:38
aaroncalero 
marvintm 
highmajoralways
closedfixed 
5
pi 
RR15Q4RR15Q4 
guilleaer
Coding ( Testing )
No
0031132: 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.
blocks defect 0031014 closed mario_castello Web POS login broken if the application is refreshed after loading a Layaway 
Issue History
2015-10-13 10:26OrekariaTypedefect => backport
2015-10-13 10:26OrekariaTarget Version => RR15Q4
2015-10-22 11:43hgbotCheckin
2015-10-22 11:43hgbotNote Added: 0081197
2015-10-22 11:43hgbotStatusscheduled => resolved
2015-10-22 11:43hgbotResolutionopen => fixed
2015-10-22 11:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/11ec4a848310c5e0899dbeb6c121eedad151aa2b [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/5415a5ea7b30a91e6a38e2f1dce7115994334bdc [^]
2015-10-22 16:29marvintmAssigned Tomario_castello => marvintm
2015-10-23 12:38guilleaerReview Assigned Tomarvintm => guilleaer
2015-10-23 12:38guilleaerNote Added: 0081256
2015-10-23 12:38guilleaerStatusresolved => closed
2015-10-23 12:38guilleaerFixed in Version => RR15Q4

Notes
(0081197)
hgbot   
2015-10-22 11:43   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 5415a5ea7b30a91e6a38e2f1dce7115994334bdc
Author: Antonio Moreno Perez <antonio.moreno <at> openbravo.com>
Date: Thu Oct 22 11:43:08 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/5415a5ea7b30a91e6a38e2f1dce7115994334bdc [^]

Fixed issue 31132. Set the json to receipt when load a layaway

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0081256)
guilleaer   
2015-10-23 12:38   
Code reviewed and tested