Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0033372 | Retail Modules | Web POS | public | 2016-06-28 14:18 | 2016-07-08 13:06 |
Reporter | umartirena | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR16Q4 | |||
Merge Request Status | |||||
Review Assigned To | guilleaer | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0033372: [SERQA 1372] Pay Open Tickets process raises an error if implements an asincronous hook | ||||
Description | [SERQA 1372] Pay Open Tickets process raises an error if implements an asincronous hook. This issue happens because the Pay Open Ticket process tries to save in local database the same ticket twice. It happens when there is asynchronous code while saving the tickets. | ||||
Steps To Reproduce | Log In Web POS: Open Web Developers tool and execute the following code: OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function(args, callback){ setTimeout(function(){ OB.UTIL.HookManager.callbackExecutor(args,callback); }, 15000) }) Go back to Web POS: * Add a product to the a ticket for a Certain Business Partner * Click on Layaway this receipt * Go to Payments window * Click on Layaway * Create another ticket. * Add a product to the a ticket for a Certain Business Partner * Click on Layaway this receipt * Go to Payments window * Click on Layaway * Go to menu and click on Pay Open Tickets * Select the two previous layaways * Pay the layaways completely * Click on Done Realize that the following error is raise in Console: 3cc22d6…_WebPOS.js:2761 [checkBlocked][no-transaction][hasbeenpaid_is_yes] Wrong write in c_order avoided [40A5909F166510BAC034F947F1EED447][VBS1/0000169] - Caller: https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:32037:18 [^] - callerInfo: Object.OB.Dal.save (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:4248:22 [^]); https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:32037:18; [^] callbackExecutor (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:11365:7 [^]); <anonymous>:4:21; line: https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:4488:22 [^] (*,+) | ||||
Proposed Solution | Find patch attached | ||||
Additional Information | |||||
Tags | SER-QA | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=9594&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-06-28 14:18 | umartirena | New Issue | |||
2016-06-28 14:18 | umartirena | Assigned To | => Retail | ||
2016-06-28 14:18 | umartirena | OBNetwork customer | => Yes | ||
2016-06-28 14:18 | umartirena | Resolution time | => 1468015200 | ||
2016-06-28 14:18 | umartirena | Triggers an Emergency Pack | => No | ||
2016-06-28 14:18 | umartirena | Tag Attached: SER-QA | |||
2016-06-28 17:58 | umartirena | File Added: issue.diff | |||
2016-06-28 17:58 | umartirena | Proposed Solution updated | |||
2016-06-29 14:42 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2016-06-29 14:42 | ranjith_qualiantech_com | Status | new => scheduled | ||
2016-07-02 07:51 | hgbot | Checkin | |||
2016-07-02 07:51 | hgbot | Note Added: 0088162 | |||
2016-07-02 07:51 | hgbot | Status | scheduled => resolved | ||
2016-07-02 07:51 | hgbot | Resolution | open => fixed | ||
2016-07-02 07:51 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/154016f60410d1665f4f3512ab24b5d63ce8e570 [^] | ||
2016-07-02 07:51 | hgbot | Checkin | |||
2016-07-02 07:51 | hgbot | Note Added: 0088163 | |||
2016-07-08 13:06 | guilleaer | Review Assigned To | => guilleaer | ||
2016-07-08 13:06 | guilleaer | Status | resolved => closed | ||
2016-07-08 13:06 | guilleaer | Fixed in Version | => RR16Q4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|