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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051973
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorsometimes2023-03-24 13:112023-04-04 13:44
Reporterjoniturralde93View Statuspublic 
Assigned ToTriage Platform Conn 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0051973: Start rfid only if no popup is opened

DescriptionUsually this is correctly managed in the popups, but there are situations where rfid read is started in a wrong moment. For example, if we execute this:

OB.UTIL.RfidController.removeEpc(
        obposEpccode,
        function() {
          OB.UTIL.RfidController.connectRFIDDevice();
        }
      );


The callback connectRFIDDevice could take a bit to be executed, and in the meanwhile the user can trigger a popup. After that, RFID would be connected and the user can read a tag with an opened popup.
Steps To Reproduce- Use connectRfidDevice as a callback function or execute it with some delay
- In the meantime, open any popup manually
- After the popup is opened, RFID will be connected
Proposed SolutionCheck in connectRFIDDevice function if a popup is opened. Maybe this can be done by checking the property OB.MobileApp.model.get('terminalLogContextPopUp'), similar to this:

    isPopupOpened: function() {
      return (
        !OB.UTIL.isNullOrUndefined(
          OB.MobileApp.model.get('terminalLogContextPopUp')
        ) && OB.MobileApp.model.get('terminalLogContextPopUp').length > 0
      );
    }
    
And check this in the connect function:

OB.UTIL.RfidController.connectRFIDDevice = function(callback, errorCallback) {
  if (
    OB.UTIL.RfidController.get('rfidWebsocket') &&
    !OB.UTIL.TerminalLog.isPopupOpened()
  ) {
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
2023-03-24 13:11 joniturralde93 New Issue
2023-03-24 13:11 joniturralde93 Assigned To => Retail
2023-03-24 13:11 joniturralde93 Triggers an Emergency Pack => No
2023-03-24 13:21 joniturralde93 Proposed Solution updated
2023-04-04 13:44 guillermogil Assigned To Retail => Triage Platform Conn


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker