Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036987Retail ModulesWeb POSpublic2017-10-02 19:542017-10-09 12:49
marvintm 
migueldejuana 
urgentmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0036987: There are still problems in Synchronized mode when the user refreshes the page (F5)
There are still two cases which are not working completely for me right now, when using using Synchronized mode, described in the steps to reproduce.

- If I do F5 while in the middle of the processing of the order, I get the popup again (correct), but if then the OrderLoader finishes, on the next retry I get a javascript error in the console, and the receipt is not removed from the UI (wrong):

985f177adb2d112341363d73f496088d.js:3076 TypeError: Cannot read property 'get' of undefined
    at 985f177adb2d112341363d73f496088d.js:37250
    at processResult (985f177adb2d112341363d73f496088d.js:4412); line: Object.OB.UTIL.showError (http://localhost:8080/openbravo/web/js/gen/985f177adb2d112341363d73f496088d.js:11975:6 [^] [^]) (*,+)


(Related to the OB.UTIL.calculateCurrentCash function, and particularly this line:

OB.Dal.findInTransaction(tx, OB.Model.PaymentMethodCashUp, {
        'cashup_id': cashUp.at(0).get('id')

- If I do F5 while in the middle of the processing of the order, but then I process the order while the Web POS is still loading, then the popup is shown (wrong), and it never goes away until I refresh the page again.
No tags attached.
related to defect 0036918 closed migueldejuana In Synchronized Mode, doing F5 while and order is being loaded reaches a wrong scenario 
depends on backport 0036988RR17Q4 closed migueldejuana There are still problems in Synchronized mode when the user refreshes the page (F5) 
Issue History
2017-10-02 19:54marvintmNew Issue
2017-10-02 19:54marvintmAssigned To => migueldejuana
2017-10-02 19:54marvintmTriggers an Emergency Pack => No
2017-10-02 19:54marvintmStatusnew => scheduled
2017-10-02 19:56marvintmRelationship addedrelated to 0036918
2017-10-04 09:44hgbotCheckin
2017-10-04 09:44hgbotNote Added: 0099753
2017-10-04 09:44hgbotStatusscheduled => resolved
2017-10-04 09:44hgbotResolutionopen => fixed
2017-10-04 09:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2a41cfd40703b04a536f35b253ee8c88784ef2a9 [^]
2017-10-09 12:49marvintmReview Assigned To => marvintm
2017-10-09 12:49marvintmStatusresolved => closed
2017-10-09 12:49marvintmFixed in Version => RR18Q1

Notes
(0099753)
hgbot   
2017-10-04 09:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2a41cfd40703b04a536f35b253ee8c88784ef2a9
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Oct 03 11:37:56 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2a41cfd40703b04a536f35b253ee8c88784ef2a9 [^]

Fixed issue 0036987: There are still problems in Synchronized mode when the user refreshes the page (F5)

- deleteOrder calls rebuildCashupFromServer, remove the created call and use deleteOrder function

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---