Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044318Retail ModulesWeb POSpublic2020-06-09 13:272020-06-25 15:44
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q3 
marvintm
No
0044318: [Camera Barcode Scanner] Console errors logging in a terminal with the Camera Barcode Scanner configured
When the camera barcode scanner for posterminal is configured (available in the org.openbravo.retail.camerabarcodescanner.posterminal module), the following error is shown in the console upon logging in or refreshing the application:
[enyo] Duplicated DOM id 'terminal_containerWindow_pointOfSale_multiColumn_rightPanel_toolbarpane_scan_scanTabContent_mainPanel_scanFromCameraButton_icon'
{_componentNameMap: {…}, $: {…}, owner: {…}, name: "icon", classes: "obUiButton-components-icon", …} will overwrite to {_componentNameMap: {…}, $: {…}, owner: {…}, name: "icon", classes: "obUiButton-components-icon", …}
In a standard retail installation, add the modules org.openbravo.retail.camerabarcodescanner and org.openbravo.retail.camerabarcodescanner.posterminal.
(alternatively, use the livebuilds modules environment)
Go to the Channel - Touchpoint Type window, open a touchpoint type and check the 'Use device camera to scan barcodes' flag.
Log in in a terminal of the configured type.
Review the output of the browser console and realize that several enyo errors are shown.
The initComponents function of the OB.UI.CBSPOS.CameraScanner.ScanFromCameraButton kind (located in scan-from-camera-button.js from the org.openbravo.retail.camerabarcodescanner.postermina module) calls this.inherited(arguments); twice.
Remove the second call to fix this issue
No tags attached.
Issue History
2020-06-09 13:27aaroncaleroNew Issue
2020-06-09 13:27aaroncaleroAssigned To => Retail
2020-06-09 13:27aaroncaleroResolution time => 1561845600
2020-06-09 13:27aaroncaleroTriggers an Emergency Pack => No
2020-06-15 13:55marvintmResolution time1561845600 => 1593468000
2020-06-23 15:53ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-06-23 16:07ranjith_qualiantech_comStatusnew => scheduled
2020-06-23 16:07hgbotCheckin
2020-06-23 16:07hgbotNote Added: 0120997
2020-06-24 06:43ranjith_qualiantech_comStatusscheduled => resolved
2020-06-24 06:43ranjith_qualiantech_comResolutionopen => fixed
2020-06-25 15:44marvintmReview Assigned To => marvintm
2020-06-25 15:44marvintmStatusresolved => closed
2020-06-25 15:44marvintmFixed in Version => RR20Q3

Notes
(0120997)
hgbot   
2020-06-23 16:07   
Repository: erp/pmods/org.openbravo.retail.camerabarcodescanner.posterminal
Changeset: 9921253757a24e7dc19353e2c6113935f598bfe0
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 23 19:37:24 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.camerabarcodescanner.posterminal/rev/9921253757a24e7dc19353e2c6113935f598bfe0 [^]

Related to issue-44318: Removed unwanted method in CameraScan Button

---
M web/org.openbravo.retail.camerabarcodescanner.posterminal/js/scan-from-camera-button.js
---