Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056286Retail ModulesWeb POSpublic2024-08-21 13:442024-12-12 14:24
Leyre 
sreehari 
highmajoralways
closedfixed 
5
 
RR24Q4 
No
0056286: Error when trying to scan a code with "-", for example S-9990STD
Error when trying to scan a code with "-", for example S-9990STD
Scanner:
Honeywell, model: Voyager 1250g or similar

BO:
https://livebuilds.openbravo.com/context/retail_pi_pgsql/ [^]

· Add the code S-9990STD in the MultiUPC section of any product.

Web POS:
https://livebuilds.openbravo.com/context/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#retail.pointofsale [^]

· Try to scan the code S-9990STD in the Web POS

Result:
The scan does not read the "-" and the system displays an error: "No result found for 9990STD"

In WebPOS2, with the same steps, the product is added but a .js error is displayed: "Cannot read properties of undefined (reading 'value')"
No tags attached.
depends on backport 0057440RR24Q3.2 closed sreehari Error when trying to scan a code with "-", for example S-9990STD 
depends on backport 0057441RR24Q2.4 closed sreehari Error when trying to scan a code with "-", for example S-9990STD 
Issue History
2024-08-21 13:44LeyreNew Issue
2024-08-21 13:44LeyreAssigned To => Retail
2024-08-21 13:44LeyreTriggers an Emergency Pack => No
2024-08-22 07:11guillermogilNote Added: 0168335
2024-08-22 07:11guillermogilStatusnew => acknowledged
2024-08-22 12:50sreehariAssigned ToRetail => sreehari
2024-08-23 07:06sreehariStatusacknowledged => scheduled
2024-08-26 10:56hgbotNote Added: 0168454
2024-08-26 10:57hgbotNote Added: 0168455
2024-09-24 06:12hgbotNote Added: 0169498
2024-09-24 06:12hgbotNote Added: 0169499
2024-09-24 06:12hgbotNote Added: 0169500
2024-09-24 06:12hgbotResolutionopen => fixed
2024-09-24 06:12hgbotStatusscheduled => closed
2024-09-24 06:12hgbotFixed in Version => 24Q4
2024-09-24 06:12hgbotNote Added: 0169501
2024-12-12 14:23marvintmStatusclosed => new
2024-12-12 14:23marvintmResolutionfixed => open
2024-12-12 14:23marvintmFixed in Version24Q4 =>
2024-12-12 14:23marvintmStatusnew => scheduled
2024-12-12 14:24marvintmStatusscheduled => resolved
2024-12-12 14:24marvintmFixed in Version => RR24Q4
2024-12-12 14:24marvintmResolutionopen => fixed
2024-12-12 14:24marvintmStatusresolved => closed

Notes
(0168335)
guillermogil   
2024-08-22 07:11   
As soon as you add a "-" with the keyboard on the scan the error is triggered
(0168454)
hgbot   
2024-08-26 10:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1573 [^]
(0168455)
hgbot   
2024-08-26 10:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2875 [^]
(0169498)
hgbot   
2024-09-24 06:12   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 0e5baba4050cbf78857c51ab7b4161b6d2b76d2e
Author: Sreehari Venkataraman <s.venkataraman@external.orisha.com>
Date: 24-09-2024 04:12:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/0e5baba4050cbf78857c51ab7b4161b6d2b76d2e [^]

Related ISSUE-56286: Added new case 'addSymbol'
Added new case 'addSymbol', in case key event has '-' then skipped event.preventDefault();

---
M web-jspack/org.openbravo.core2/src/components/BaseKeypad/BaseKeypad.jsx
M web-jspack/org.openbravo.core2/src/hooks/useEditNumber/useEditNumber.js
---
(0169499)
hgbot   
2024-09-24 06:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1573 [^]
(0169500)
hgbot   
2024-09-24 06:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2875 [^]
(0169501)
hgbot   
2024-09-24 06:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ecb2fb4acde369ca32111a7e89c3b2a552de1150
Author: Sreehari Venkataraman <s.venkataraman@external.orisha.com>
Date: 24-09-2024 04:12:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ecb2fb4acde369ca32111a7e89c3b2a552de1150 [^]

Fixes ISSUE-56286: Used isMixedCode to trigger handleEditAction with specific action
Used isMixedCode to trigger handleEditAction with specific action when the code has '-' then the event is always triggered with 'addSymbol' action

---
M web-jspack/org.openbravo.pos2/src/components/ProductScan/ProductScanKeypad/ProductScanKeypad.jsx
---