Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047020Retail ModulesWeb POSpublic2021-06-08 11:422021-06-16 13:22
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR21Q3 
No
0047020: It is possible scan one item before the login process finish
the scan should be disabled until the login is completed
. open chrome dev tools
. register a function (debugger) in OBPOS_BarcodeScan hook to stop the execution when item is scanned:
OB.UTIL.HookManager.registerHook('OBPOS_BarcodeScan', function(args, callbacks) {debugger;OB.UTIL.HookManager.callbackExecutor(args, callbacks);})

. do login and scan continuously
. the hook is executed before the login finished
. the item was not added to the ticket

check video:
https://drive.google.com/file/d/1UjBESGidmaZG_iCROC6s1hr7pHej67_y/view [^]
. in the second 7, the product is scanned (hook is executed)
. execution is resumed (F8) but the product was not added to the receipt
. scanner should be disabled during the login
NOR
Issue History
2021-06-08 11:42malsasuaNew Issue
2021-06-08 11:42malsasuaAssigned To => Retail
2021-06-08 11:42malsasuaResolution time => 1624744800
2021-06-08 11:42malsasuaTriggers an Emergency Pack => No
2021-06-09 00:16rafarodaTag Attached: NOR
2021-06-10 06:16ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-06-14 18:24ranjith_qualiantech_comStatusnew => scheduled
2021-06-16 08:11hgbotNote Added: 0129543
2021-06-16 13:22hgbotResolutionopen => fixed
2021-06-16 13:22hgbotStatusscheduled => closed
2021-06-16 13:22hgbotFixed in Version => RR21Q3
2021-06-16 13:22hgbotNote Added: 0129564
2021-06-16 13:22hgbotNote Added: 0129565

Notes
(0129543)
hgbot   
2021-06-16 08:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/238 [^]
(0129564)
hgbot   
2021-06-16 13:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 3d9fadd27d249cf10011da59ad5b1c1a76087ecb
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-06-16T11:22:16+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/3d9fadd27d249cf10011da59ad5b1c1a76087ecb [^]

Fixed ISSUE-47020: BarcodeScan should be prevented when POS is login and loading

---
M web/org.openbravo.mobile.core/source/component/ob-keyboard.js
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
---
(0129565)
hgbot   
2021-06-16 13:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/238 [^]