Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040475Retail ModulesWeb POSpublic2019-03-28 11:202019-04-16 14:02
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q3 
adrianromero
No
0040475: RFID is enabled while PopUp is displayed
When popup is opened in the hook OBPOS_NewReceipt, the popUp is displayed but the RFID is enabled.

The RFID should be disabled always that one popup is displayed.
[BO]
. in touchpoint - type: set "use RFID" flag to true

[POS]
. register one function to hook 'OBPOS_NewReceipt' that it is opening one PopUP:
1- open developers tools
2- add breakpoint in the line:
OB.UTIL.HookManager.executeHooks('OBPOS_NewReceipt',...)
3- refresh browser
4- execution is stopped in breakpoint of step 2
5- register a function for this hook executing below command:

OB.UTIL.HookManager.registerHook('OBPOS_NewReceipt', function(args, callbacks) {OB.UTIL.showConfirmation.display(); OB.UTIL.HookManager.callbackExecutor(args, callbacks); });

6- continue execution
PopUp is displayed, but RFID is enabled
(see screenshot attached)
No tags attached.
related to defect 0040513 closed ranjith_qualiantech_com The focus is lost after completing one ticket if one popup is opened when new ticket is created and previous ticket is deleted 
png rfid.png (84,241) 2019-03-28 11:21
https://issues.openbravo.com/file_download.php?file_id=12801&type=bug
png

patch issue 40475 source mobilecore.patch (1,003) 2019-04-02 08:21
https://issues.openbravo.com/file_download.php?file_id=12820&type=bug
Issue History
2019-03-28 11:20malsasuaNew Issue
2019-03-28 11:20malsasuaAssigned To => Retail
2019-03-28 11:20malsasuaResolution time => 1554415200
2019-03-28 11:20malsasuaTriggers an Emergency Pack => No
2019-03-28 11:21malsasuaFile Added: rfid.png
2019-03-28 11:25malsasuaResolution time1554415200 => 1555538400
2019-03-28 14:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-03-28 14:03ranjith_qualiantech_comStatusnew => scheduled
2019-04-02 08:21ranjith_qualiantech_comFile Added: issue 40475 source mobilecore.patch
2019-04-04 10:46ranjith_qualiantech_comRelationship addedrelated to 0040513
2019-04-09 12:40hgbotCheckin
2019-04-09 12:40hgbotNote Added: 0111041
2019-04-09 12:40hgbotStatusscheduled => resolved
2019-04-09 12:40hgbotResolutionopen => fixed
2019-04-09 12:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d382a5f2bc769a71aee00cae5bd975afc15377b1 [^]
2019-04-15 14:12adrianromeroNote Added: 0111135
2019-04-15 14:12adrianromeroStatusresolved => new
2019-04-15 14:12adrianromeroResolutionfixed => open
2019-04-16 08:52ranjith_qualiantech_comStatusnew => scheduled
2019-04-16 12:30hgbotCheckin
2019-04-16 12:30hgbotNote Added: 0111163
2019-04-16 12:30hgbotStatusscheduled => resolved
2019-04-16 12:30hgbotResolutionopen => fixed
2019-04-16 12:30hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d382a5f2bc769a71aee00cae5bd975afc15377b1 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9b726d138932fd8104fabe3df2ed600600fcea65 [^]
2019-04-16 14:02adrianromeroReview Assigned To => adrianromero
2019-04-16 14:02adrianromeroNote Added: 0111165
2019-04-16 14:02adrianromeroStatusresolved => closed
2019-04-16 14:02adrianromeroFixed in Version => RR19Q3

Notes
(0111041)
hgbot   
2019-04-09 12:40   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d382a5f2bc769a71aee00cae5bd975afc15377b1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Apr 09 16:09:59 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d382a5f2bc769a71aee00cae5bd975afc15377b1 [^]

Fixed issue 40475 : Hook PreScanningFocus should be called when no popups is displayed

* When scanMode is set as true, there should not be any active popups.
  If there are any active popups, hook OBMOBC_PreScanningFocus should not be called

---
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
---
(0111135)
adrianromero   
2019-04-15 14:12   
The error is still reproducible with the changeset applied:

1.- Do to the console and add the hook:
OB.UTIL.HookManager.registerHook('OBPOS_NewReceipt', function(args, callbacks) {OB.UTIL.showConfirmation.display(); OB.UTIL.HookManager.callbackExecutor(args, callbacks); });
2.- Delete the receipt and observe now the empty confirm dialog of the previous hook appears.
3. Close the dialog and observe RFID is disabled (RFID icon is red). This is wrong.
Observe also if you tap on "SCAN" the RFID is enabled again (icon is black)
(0111163)
hgbot   
2019-04-16 12:30   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9b726d138932fd8104fabe3df2ed600600fcea65
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Apr 16 16:00:06 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9b726d138932fd8104fabe3df2ed600600fcea65 [^]

Fixed issue 40475 : Updated scanMode to false while deleting the receipt

* Original Scanmode should be updated before deleting the receipt.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0111165)
adrianromero   
2019-04-16 14:02   
Verified.