Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0050148 | Retail Modules | Web POS | public | 2022-09-02 13:53 | 2022-09-02 13:54 |
Reporter | jetxarri | ||||
Assigned To | Retail | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | pi | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0050148: Not possible to show a correct error message in action InitCashup | ||||
Description | If an actionPreparations fails during cashup initialization, it does not matter the error that the actionPreparation launches because always is going to show the same popup | ||||
Steps To Reproduce | Create the following action preparation OB.App.StateAPI.Global.initCashup.addActionPreparation( async (state, payload) => { throw new OB.App.Class.ActionCanceled({ errorConfirmation: 'CFIS_FiscalizationErrorLogin' }); return { ...payload }; }, async (state, payload) => payload, 999999 ); It does not matter the error, the function onInitCashupError is called and does not accept any parameter | ||||
Proposed Solution | File login-model OB.App.State.Global.initCashup({ ..... .catch(e => { if (e instanceof OB.App.Class.ActionCanceled) { OB.App.View.ActionCanceledUIHandler.handle(e); } else { onInitCashupError(); } OB.error(e.stack); }); Also this solution is not complete, because it is going to show a popup with Ok button only and it should give the option to the user to do logout, like the popup created in function onInitCashupError | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-09-02 13:53 | jetxarri | New Issue | |||
2022-09-02 13:53 | jetxarri | Assigned To | => Retail | ||
2022-09-02 13:53 | jetxarri | Triggers an Emergency Pack | => No | ||
2022-09-02 13:54 | jetxarri | Proposed Solution updated |
There are no notes attached to this issue. |