Openbravo Issue Tracking System - POS2
View Issue Details
0049784POS2POSpublic2022-07-12 12:542022-10-06 12:19
plujan 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
23Q1 
No
0049784: [22Q3] Barcode scanner adds two products if the EAN field is focused
When using the barcode scanner to add products, two lines of the same product are added. On top of the main problem of having an extra product added to the ticket, notice that the product is a grouped one, so it has no sense to have two separated lines neither.
In a 22Q3 environment, configure the product Alpine Poles to have a given EAN code which you posses the barcode.

Scenario A (wrong)
Log into POS2 as vallblanca
Switch to Scan tab. Notice the focus is in the Code field
Use the barcode scanner to scan the code for Alpine Poles
Error: Two lines of one Alpine Poles are added to the ticket

Scenario B (working as expected)
Log into POS2 as vallblanca
Switch to Scan tab. Click anywhere in the screen to remove the focus from Code field
Use the barcode scanner to scan the code for Alpine Poles
As expected, only one line of Alpine Poles is added to the ticket
FASH
duplicate of defect 0049889 closed meriem_azaf JIRA 3186 - QR code : Product quantity increase randomly. 
related to defect 0050384 closed javierRodriguez Product Scan InputBox event listener overrides in camerabarcode scanner 
jpg TwoAlpinePoles.jpg (87,902) 2022-07-12 12:54
https://issues.openbravo.com/file_download.php?file_id=17296&type=bug
jpg

? 2 Quantities added on Scan.webm (915,737) 2022-09-23 11:40
https://issues.openbravo.com/file_download.php?file_id=17546&type=bug
Issue History
2022-07-12 12:54plujanNew Issue
2022-07-12 12:54plujanAssigned To => Retail
2022-07-12 12:54plujanFile Added: TwoAlpinePoles.jpg
2022-07-12 12:54plujanTriggers an Emergency Pack => No
2022-07-18 17:42rafarodaTag Attached: FASH
2022-08-10 11:52AugustoMauchStatusnew => closed
2022-08-11 08:53AugustoMauchRelationship addedduplicate of 0049889
2022-08-12 08:38rafarodaNote Added: 0140081
2022-09-23 11:40rafarodaNote Added: 0141321
2022-09-23 11:40rafarodaFile Added: 2 Quantities added on Scan.webm
2022-09-23 13:01aferrazStatusclosed => new
2022-09-30 12:16ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-09-30 12:16ranjith_qualiantech_comStatusnew => scheduled
2022-10-03 03:39hgbotNote Added: 0141543
2022-10-03 03:58ranjith_qualiantech_comRelationship addedrelated to 0050384
2022-10-06 09:45hgbotResolutionopen => fixed
2022-10-06 09:45hgbotStatusscheduled => closed
2022-10-06 09:45hgbotNote Added: 0141717
2022-10-06 09:45hgbotFixed in Version => 23Q1
2022-10-06 09:45hgbotNote Added: 0141718
2022-10-06 12:19hgbotNote Added: 0141725

Notes
(0140081)
rafaroda   
2022-08-12 08:38   
Duplicated of 0049889
(0141321)
rafaroda   
2022-09-23 11:40   
This 0049784 is wrongly closed, this keeps reproducing, see attached video:

1) You can reproduce it perfectly in Live Builds https://livebuilds.openbravo.com/retail_pos2_pgsql/web/pos/?terminal=VBS-2 [^]

2) You need to have the focus in CODE field int he main scan POS screen: for instance barcode https://barcode.tec-it.com/es/?data=2112345000046 [^] for product with EAN 2112345000046

3) You need to use a REAL scanner (DON’T try by simulating scanner)
(0141543)
hgbot   
2022-10-03 03:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/862 [^]
(0141717)
hgbot   
2022-10-06 09:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/862 [^]
(0141718)
hgbot   
2022-10-06 09:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: c683428221320957bd770d956350370ba984332c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 06-10-2022 07:45:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/c683428221320957bd770d956350370ba984332c [^]

Fixed ISSUE-49784: Keypad event should not be triggered when scanner is used

---
M web-jspack/org.openbravo.core2/src/components/BaseKeypad/BaseKeypad.jsx
---
(0141725)
hgbot   
2022-10-06 12:19   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 5b49f7da66688b22fe40061f96cb841358aa84dd
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 06-10-2022 12:18:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/5b49f7da66688b22fe40061f96cb841358aa84dd [^]

Related to ISSUE-ISSUE-49784: Take into account that a kaypad could not have an inputref prop

---
M web-jspack/org.openbravo.core2/src/components/BaseKeypad/BaseKeypad.jsx
---