Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044193Retail ModulesWeb POSpublic2020-05-26 16:052020-06-09 18:40
Leyre 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q3 
marvintm
No
0044193: RFID incorrect status when the Terminal is refreshed and pop-up is open
RFID incorrect status when the Terminal is refreshed and pop-up is open
Changes in the code, in an updated local environment:
1) Add a new hook, to implement a pop-up when loading a new receipt:
path: modules/org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/hookTest.js

code:
OB.UTIL.HookManager.registerHook('OBPOS_NewReceipt', function(args, callbacks) {
   OB.UTIL.showConfirmation.display('pruebaTitulo', 'pruebaBody', [{
    label: OB.I18N.getLabel('OBMOBC_LblOk'),
    isConfirmButton: true,
    action: function() {
       console.log("aaaaaaaa");
    }
   }]);
  OB.UTIL.HookManager.callbackExecutor(args, callbacks);
});

2) Add the new .js to the component provider:
path: /modules/org.openbravo.retail.posterminal/src/org/openbravo/retail/posterminal/OBPOSComponentProvider.java

Backend:

1) Configure the RFID for a Channel Touchpoint Type: Use External Input = Yes; RFID = Yes

2) Configure the printer in the Channel - Touchpoint: Hardware URL = http://localhost:8090/printer [^]

Web POS:
1) Open HWM

2) Open the POS Terminal

Result: Verify that the RFID is active with the pop-up open.
Expected result: The RFID should be disabled if there is an open pop up
No tags attached.
related to defect 0044568 closed ranjith_qualiantech_com Incorrect RFID status when opening a popup 
Issue History
2020-05-26 16:05LeyreNew Issue
2020-05-26 16:05LeyreAssigned To => Retail
2020-05-26 16:05LeyreResolution time => 1592258400
2020-05-26 16:05LeyreTriggers an Emergency Pack => No
2020-06-02 12:51ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-06-03 07:14ranjith_qualiantech_comStatusnew => scheduled
2020-06-03 07:18hgbotCheckin
2020-06-03 07:18hgbotNote Added: 0120558
2020-06-03 07:18hgbotStatusscheduled => resolved
2020-06-03 07:18hgbotResolutionopen => fixed
2020-06-03 07:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4937fbc7aa0e71394cb24cad578bfccbf1971d02 [^]
2020-06-09 18:40marvintmReview Assigned To => marvintm
2020-06-09 18:40marvintmStatusresolved => closed
2020-06-09 18:40marvintmFixed in Version => RR20Q3
2020-07-07 12:44LeyreRelationship addedrelated to 0044568

Notes
(0120558)
hgbot   
2020-06-03 07:18   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4937fbc7aa0e71394cb24cad578bfccbf1971d02
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jun 03 10:48:37 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4937fbc7aa0e71394cb24cad578bfccbf1971d02 [^]

Fixed issue-44193 : ScanningFocus hook should be invoked when RFID connection is startd

* When starting RFID connection, RFID should be connected based on the validation in ScanningFocus hook

---
M web/org.openbravo.retail.posterminal/js/utils/rfidWebsocket.js
---