Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050148
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2022-09-02 13:532022-09-02 13:54
ReporterjetxarriView Statuspublic 
Assigned ToRetail 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050148: Not possible to show a correct error message in action InitCashup

DescriptionIf 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 ReproduceCreate 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 SolutionFile 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker