Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | ||||||||||||
| 0050148 | ||||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| defect | [Retail Modules] Web POS | minor | always | 2022-09-02 13:53 | 2022-09-02 13:54 | |||||||
| Reporter | jetxarri | View Status | public | |||||||||
| Assigned To | Retail | |||||||||||
| Priority | high | Resolution | open | Fixed in Version | ||||||||
| Status | new | Fix in branch | Fixed in SCM revision | |||||||||
| Projection | none | ETA | none | Target Version | pi | |||||||
| OS | Any | Database | Any | Java version | ||||||||
| OS Version | Database version | Ant version | ||||||||||
| Product Version | pi | SCM revision | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| 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 | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
| Copyright © 2000 - 2009 MantisBT Group |