Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0028384 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2014-12-11 09:12 | 2014-12-15 00:31 | |||
Reporter | aaroncalero | View Status | public | |||||
Assigned To | aaroncalero | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR15Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 049dcd9e1e09 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | mtaal | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0028384: Console error when logging out from WebPOS if there are orders pending to be paid | |||||||
Description | The 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 Reproduce | Log 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) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(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 (viewer) 2014-12-15 00:31 |
Reviewed and tested |
![]() |
|||
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 | OBNetwork customer | => No |
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 |