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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028384
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2014-12-11 09:122014-12-15 00:31
ReporteraaroncaleroView Statuspublic 
Assigned Toaaroncalero 
PrioritynormalResolutionfixedFixed in VersionRR15Q1
StatusclosedFix in branchFixed in SCM revision049dcd9e1e09
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomtaal
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028384: Console error when logging out from WebPOS if there are orders pending to be paid

DescriptionThe following console error shows in the browser console if the user logs out of WebPOS when there are open tickets:
 OB.Dal.removeAll: table 'c_order'; {"message":"could not prepare statement (1 no such column: undefined)","code":5}; http://localhost:8080/openbravo/web/js/gen/9a323447488c7aad99090a112bee00ad_WebPOS.js:1983:11 [^]
9a323447488c7aad99090a112bee00ad_WebPOS.js:7109 postCloseSession; {}; line: errorFunc (http://localhost:8080/openbravo/web/js/gen/9a323447488c7aad99090a112bee00ad_WebPOS.js:19228:16 [^]) (*,+)
Steps To ReproduceLog in in the WebPOS
Create a new ticket and add a product
Log out of the application
Check the browser console output and search for errors (make sure the log is preserved across different pages, otherwise the error will disappear the moment the login page loads again)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0072419)
hgbot (developer)
2014-12-11 10:18

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 049dcd9e1e09e0918585d9ec95372f09e083df61
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Thu Dec 11 10:13:11 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/049dcd9e1e09e0918585d9ec95372f09e083df61 [^]

Fixed issue 28384: Console error when logging out from WebPOS if there are orders pending to be paid

The code executed in the postCloseSession function has been refactored and simplified.
Before, a find was executed to retrieve pending orders. For each order, two removes were executed: the first remove was wrong and was causing a console error. The second remove was removing the order from the database.
After the fix, the find has been replaced by a removeAll with the same criteria, and all pending orders are deleted in a single query.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0072480)
mtaal (manager)
2014-12-15 00:31

Reviewed and tested

- Issue History
Date Modified Username Field Change
2014-12-11 09:12 aaroncalero New Issue
2014-12-11 09:12 aaroncalero Assigned To => aaroncalero
2014-12-11 09:12 aaroncalero Triggers an Emergency Pack => No
2014-12-11 10:18 hgbot Checkin
2014-12-11 10:18 hgbot Note Added: 0072419
2014-12-11 10:18 hgbot Status new => resolved
2014-12-11 10:18 hgbot Resolution open => fixed
2014-12-11 10:18 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/049dcd9e1e09e0918585d9ec95372f09e083df61 [^]
2014-12-15 00:31 mtaal Review Assigned To => mtaal
2014-12-15 00:31 mtaal Note Added: 0072480
2014-12-15 00:31 mtaal Status resolved => closed
2014-12-15 00:31 mtaal Fixed in Version => RR15Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker