Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0037448 | Retail Modules | Cash up | public | 2017-12-11 15:17 | 2017-12-20 19:10 |
Reporter | aaroncalero | ||||
Assigned To | jorge-garcia | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR18Q1 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0037448: RebuildCashUpFromServer doesn't handle correctly network errors | ||||
Description | If the OB.UTIL.rebuildCashupFromServer function fails because the connection has been interrupted momentarily, it might happen that a new unprocessed cashup is generated in addition to the existing cashup. | ||||
Steps To Reproduce | Log in in backend, go to the preferences window and enable the Web POS Synchronized Mode preference. Verify in POS Terminal window that there is only one unprocessed cashup for the VBS-1 terminal. Log in in web pos (VBS-1 terminal). Create a new ticket and add some products. Click on the total amount button to go to the payment tab. Open developer tools and add the following breakpoints: One inside the OB.UTIL.rebuildCashupFromServer function. (cashUpReportUtils.js) One inside the serviceError function. (ob-datasource.js) Add a payment and click on Done. The code will stop on the OB.UTIL.rebuildCashupFromServer breakpoint. Disconnect the network. Continue the code flow. The code will stop on the serviceError breakpoint. Connect the network again and then continue the flow. The ticket will be correctly synchronized. Log in again in backend and verify on the POS Terminal window that there are now 2 unprocessed cashups for the VBS-1 terminal. | ||||
Proposed Solution | If the OB.UTIL.rebuildCashupFromServer function fails with an exception (which is different from returning 0 cashups) or with a connection error, it should show the error to the user and it should stop the workflow. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2017-12-11 15:17 | aaroncalero | New Issue | |||
2017-12-11 15:17 | aaroncalero | Assigned To | => Retail | ||
2017-12-11 15:17 | aaroncalero | OBNetwork customer | => Yes | ||
2017-12-11 15:17 | aaroncalero | Resolution time | => 1514156400 | ||
2017-12-11 15:17 | aaroncalero | Triggers an Emergency Pack | => No | ||
2017-12-12 15:09 | jorge-garcia | Status | new => scheduled | ||
2017-12-12 15:09 | jorge-garcia | Assigned To | Retail => jorge-garcia | ||
2017-12-19 10:25 | hgbot | Checkin | |||
2017-12-19 10:25 | hgbot | Note Added: 0101121 | |||
2017-12-19 10:25 | hgbot | Status | scheduled => resolved | ||
2017-12-19 10:25 | hgbot | Resolution | open => fixed | ||
2017-12-19 10:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4411cad18c262adcd858941b4657a7ac59c4672e [^] | ||
2017-12-19 10:25 | hgbot | Checkin | |||
2017-12-19 10:25 | hgbot | Note Added: 0101122 | |||
2017-12-19 10:25 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4411cad18c262adcd858941b4657a7ac59c4672e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/79e43cc4018cbb37d0f4d4765715e93628222bb6 [^] | ||
2017-12-20 19:10 | marvintm | Review Assigned To | => marvintm | ||
2017-12-20 19:10 | marvintm | Status | resolved => closed | ||
2017-12-20 19:10 | marvintm | Fixed in Version | => RR18Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|