Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038464Retail ModulesWeb POSpublic2018-04-27 12:532018-05-21 09:27
jonibc 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR18Q3 
marvintm
No
0038464: Error in Cancel & Replace: Order model is not complete after refresh the browser
Order model is not complete after refresh the browser.

After refreshing the application the property 'canceledorder' (Backbone model representing the original order) is missing.
Log into Web POS:
1- Create a layaway partially paid
2- Complete the layaway
3- Open the layaway created in the previous steps.
4- Open lateral menu, select option Cancel & Replace.
5- Check that property 'canceledorder' of the receipt is present. (Check in Chrome Developer Tools console OB.MobileApp.model.receipt.get('canceledorder'))
6- Refresh the browser.
7- Check that property 'canceledorder' is missed in Order model.(Check in Chrome Developer Tools console OB.MobileApp.model.receipt.get('canceledorder'))
Seems that the problem is in the clearWith function, that does not recover correctly the canceled order property.
No tags attached.
related to defect 0038465 closed ranjith_qualiantech_com Cancel & Replace error: Property 'canceledorder' is not rebuilt as Backbone model. 
Issue History
2018-04-27 12:53jonibcNew Issue
2018-04-27 12:53jonibcAssigned To => Retail
2018-04-27 12:53jonibcTriggers an Emergency Pack => No
2018-05-02 09:04ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-05-02 11:46ranjith_qualiantech_comStatusnew => scheduled
2018-05-02 12:29ranjith_qualiantech_comRelationship addedrelated to 0038465
2018-05-15 08:38hgbotCheckin
2018-05-15 08:38hgbotNote Added: 0104512
2018-05-15 08:38hgbotStatusscheduled => resolved
2018-05-15 08:38hgbotResolutionopen => fixed
2018-05-15 08:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/66e06019d5422d3424e8c4365b92f6db3284a153 [^]
2018-05-21 09:27marvintmReview Assigned To => marvintm
2018-05-21 09:27marvintmStatusresolved => closed
2018-05-21 09:27marvintmFixed in Version => RR18Q3

Notes
(0104512)
hgbot   
2018-05-15 08:38   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 66e06019d5422d3424e8c4365b92f6db3284a153
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue May 15 12:08:25 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/66e06019d5422d3424e8c4365b92f6db3284a153 [^]

Fixed issue 38464 : Added doCancelAndReplace to receipt on reloading the POS

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