Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038465Retail ModulesWeb POSpublic2018-04-27 13:142018-05-04 15:04
jonibc 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR18Q3 
marvintm
No
0038465: Cancel & Replace error: Property 'canceledorder' is not rebuilt as Backbone model.
Property 'canceledorder' is not rebuilt as Backbone model if an error is raised synchronizing the layaway.
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, and it is a backbone model. (Check in Chrome Developer Tools console OB.MobileApp.model.receipt.get('canceledorder'))
6- In this point modify the order to make impossible to synchronize it. (For example set in Chrome Developer Tools console : OB.MobileApp.model.receipt.get('bp').set('id','a')
7- Click on total amount, and layaway button.
8- Check that property 'canceledorder' is present in Order model, but it is a JSON Object and not a backbone model(Check in Chrome Developer Tools console OB.MobileApp.model.receipt.get('canceledorder'))
Rebuilt specifically the property 'canceledorder' as Backbone model and set it correctly to the order.

Seems that the problem is in the clearWith function, that does not recover correctly the canceled order property.
No tags attached.
related to defect 0038464 closed ranjith_qualiantech_com Error in Cancel & Replace: Order model is not complete after refresh the browser 
Issue History
2018-04-27 13:14jonibcNew Issue
2018-04-27 13:14jonibcAssigned To => Retail
2018-04-27 13:14jonibcResolution time => 1526853600
2018-04-27 13:14jonibcTriggers an Emergency Pack => No
2018-04-27 13:14jonibcProposed Solution updated
2018-05-02 09:05ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-05-02 11:47ranjith_qualiantech_comStatusnew => scheduled
2018-05-02 12:29ranjith_qualiantech_comRelationship addedrelated to 0038464
2018-05-04 08:37hgbotCheckin
2018-05-04 08:37hgbotNote Added: 0104266
2018-05-04 08:37hgbotStatusscheduled => resolved
2018-05-04 08:37hgbotResolutionopen => fixed
2018-05-04 08:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a3bbf5b2f6a2edad5209d6ef50888691d4fc25aa [^]
2018-05-04 15:04marvintmReview Assigned To => marvintm
2018-05-04 15:04marvintmStatusresolved => closed
2018-05-04 15:04marvintmFixed in Version => RR18Q3

Notes
(0104266)
hgbot   
2018-05-04 08:37   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a3bbf5b2f6a2edad5209d6ef50888691d4fc25aa
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri May 04 12:06:53 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a3bbf5b2f6a2edad5209d6ef50888691d4fc25aa [^]

Fixed issue 38465 : Added canceledorder to receipt as model instead of json on reloading the instance

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