Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034024Retail ModulesStoreServerpublic2016-09-19 23:392016-10-10 15:37
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR16Q4 
migueldejuana
No
0034024: Remote BP data: bp of current order of orderlist not updated when changing BP
In case of remote BP when changing the BP the user interface is refreshed but the current order of the orderlist (OB.MobileApp.model.orderList.current) is not updated on time from OB.MobileApp.model.orderList.modelorder.

This is caused by async behavior. The copy of modelorder to current ([1]) happens before the bp has been changed ([2]).

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/200182f3db29/web/org.openbravo.retail.posterminal/js/pointofsale/view/pointofsale.js#l579 [^]

[2]
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/200182f3db29/web/org.openbravo.retail.posterminal/js/model/order.js#l2238 [^]
Set remote BP setting
Login into webpos
change the BP in webpos, put breakpoints in the code
check the values of the current/modelorder of the orderlist and their BP
copy the modelorder to current when the save on the server has happened
No tags attached.
depends on backport 0034025RR16Q3.3 closed mtaal Remote BP data: bp of current order of orderlist not updated when changing BP 
Issue History
2016-09-19 23:39mtaalNew Issue
2016-09-19 23:39mtaalAssigned To => mtaal
2016-09-19 23:39mtaalTriggers an Emergency Pack => No
2016-09-19 23:39mtaalStatusnew => scheduled
2016-09-19 23:45hgbotCheckin
2016-09-19 23:45hgbotNote Added: 0090090
2016-09-19 23:45hgbotStatusscheduled => resolved
2016-09-19 23:45hgbotResolutionopen => fixed
2016-09-19 23:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9db4c8b862dbe4eff6ccc1166f1ffac61f38bce6 [^]
2016-09-25 11:54mtaalAssigned Tomtaal => migueldejuana
2016-09-25 11:54mtaalAssigned Tomigueldejuana => mtaal
2016-09-25 11:54mtaalReview Assigned To => migueldejuana
2016-10-10 15:37migueldejuanaNote Added: 0090517
2016-10-10 15:37migueldejuanaStatusresolved => closed

Notes
(0090090)
hgbot   
2016-09-19 23:45   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9db4c8b862dbe4eff6ccc1166f1ffac61f38bce6
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Sep 19 23:44:56 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9db4c8b862dbe4eff6ccc1166f1ffac61f38bce6 [^]

Fixes issue 34024: Remote BP data: bp of current order of orderlist not updated when changing BP
Copy modelorder to current after the save on the server has happened

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0090517)
migueldejuana   
2016-10-10 15:37   
Tested and reviewed in f098a245fb14