Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039884
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2019-01-03 12:562019-01-16 10:45
Reportergorka_gilView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR19Q1
StatusclosedFix in branchFixed in SCM revision09a23417abb5
ProjectionnoneETAnoneTarget VersionRR19Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tojorge-garcia
Regression levelAutomated tests
Regression date2018-12-18
Regression introduced in releasepi
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7c3c0cb548f6 [^]
Triggers an Emergency PackNo
Summary

0039884: Javascript error is displayed when trying to close pending documents when opening store from a terminal - Cannot read 'models'

DescriptionThis commit (from issue 39816):
 https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7c3c0cb548f6 [^]

Makes that this issue happens again:
  https://issues.openbravo.com/view.php?id=39488 [^]

With a new error message:
  TypeError: Cannot read property 'models' of undefined at removeReceiptFromDatabase.


Details of error:
In function removeReceiptFromDatabase,
OB.MobileApp.model.orderList is undefined, previously it checks if undefined before use it, now try to get the models from it without check.

Steps To ReproduceRun test: I39488_VerifyNoErrorWhenClosingPendingDocs

or follow steps to reproduce of issue 39488
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0039872 closedranjith_qualiantech_com Javascript error is displayed when trying to close pending documents when opening store from a terminal - Cannot read 'models' 

-  Notes
(0108855)
hgbot (developer)
2019-01-08 14:40

Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: 09a23417abb5091733c188574526d9d2d92ed147
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jan 08 19:09:49 2019 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/09a23417abb5091733c188574526d9d2d92ed147 [^]

Fixed issue 39884 : Receipt should be removed from database even if orderList is empty

* With Sessions module, Cashup window will be loaded before rendering the pointofsale window whem sessions closed in backoffice.
In that case, if receipt is saved in database and not completed, It will shown in cashup window to delete it.
OB.MobileApp.model.orderList will not be initiated while deleting the receipt.
So if orderList is present, receipt to be removed will be deleted from database and orderlist
else receipt will be removed from database only

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0108975)
jorge-garcia (developer)
2019-01-16 10:45

Code reviewed and tested

- Issue History
Date Modified Username Field Change
2019-01-08 13:51 ranjith_qualiantech_com Type defect => backport
2019-01-08 13:51 ranjith_qualiantech_com Target Version => RR19Q1
2019-01-08 14:40 hgbot Checkin
2019-01-08 14:40 hgbot Note Added: 0108855
2019-01-08 14:40 hgbot Status scheduled => resolved
2019-01-08 14:40 hgbot Resolution open => fixed
2019-01-08 14:40 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b1a591c616a4292262cc235a8306bb47c2aa73a [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/09a23417abb5091733c188574526d9d2d92ed147 [^]
2019-01-16 10:45 jorge-garcia Review Assigned To => jorge-garcia
2019-01-16 10:45 jorge-garcia Note Added: 0108975
2019-01-16 10:45 jorge-garcia Status resolved => closed
2019-01-16 10:45 jorge-garcia Fixed in Version => RR19Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker