Openbravo Issue Tracking System - POS2
View Issue Details
0048461POS2Restaurantspublic2022-01-21 10:532022-01-27 23:11
Felixaka 
cberner 
highcriticalhave not tried
closedfixed 
5
 
 
No
0048461: JIRA 2611 TAP Scan CRT - when you scan 2 CRT ticket , one replace the amount in the amountbox
When i'm in POS, and i'm using a scan crt for an article, i would like the price to be dispaly on the amount field
But instead i have the number of the scan CRT

Exemple : Montant = 600.8039781515004121 ( code number of the CRT )

instead of : Montant = 1.09 ( price of the article )

The issues happen randomly
1) Connecet to Webpos on Fs environement
2) Use a Scan CRT
3)Scan it several time
4) See the anomalie
No tags attached.
depends on backport 0048473TAP closed cberner JIRA 2611 TAP Scan CRT - when you scan 2 CRT ticket , one replace the amount in the amountbox 
png image-20220119-152605 (1).png (509,602) 2022-01-21 11:08
https://issues.openbravo.com/file_download.php?file_id=16530&type=bug
Issue History
2022-01-21 10:53FelixakaNew Issue
2022-01-21 10:53FelixakaAssigned To => Retail
2022-01-21 10:53FelixakaTriggers an Emergency Pack => No
2022-01-21 11:08FelixakaFile Added: image-20220119-152605 (1).png
2022-01-24 13:21guilleaerStatusnew => scheduled
2022-01-24 13:21guilleaerStatusscheduled => acknowledged
2022-01-24 17:11guilleaerStatusacknowledged => scheduled
2022-01-24 17:11guilleaerAssigned ToRetail => cberner
2022-01-25 13:25hgbotNote Added: 0134553
2022-01-27 18:39hgbotResolutionopen => fixed
2022-01-27 18:39hgbotStatusscheduled => closed
2022-01-27 18:39hgbotNote Added: 0134635
2022-01-27 18:39hgbotNote Added: 0134636
2022-01-27 23:11hgbotNote Added: 0134640

Notes
(0134553)
hgbot   
2022-01-25 13:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/692 [^]
(0134635)
hgbot   
2022-01-27 18:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 47dd6d4f4a1a00b4864b4dc3a562a02a8012bdd5
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 27-01-2022 17:07:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/47dd6d4f4a1a00b4864b4dc3a562a02a8012bdd5 [^]

Fixes ISSUE-48461: Barcode scanner on input replaces the value and doesn't change it back

When scanning a barcode, the value should be captured by the barcode
scanner and then removed from the corresponding input where it was
inserted. This was working fine, but on certain inputs that change due
to internal validator or formatter it resulted in the code not being
removed. To fix this, the old value of the field is saved, if there's
any, and if so, when clearing the code it will replace the field value
with the old pre scan value.

---
M web-jspack/org.openbravo.core2/src/core/scan/device/BarcodeScanner.js
M web-jspack/org.openbravo.core2/src/core/scan/device/__test__/BarcodeScanner.test.js
M web-jspack/org.openbravo.core2/src/core/scan/device/clearCodeFromActiveInput.js
---
(0134636)
hgbot   
2022-01-27 18:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/692 [^]
(0134640)
hgbot   
2022-01-27 23:11   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 7275472f742c978b1ebeab9ca1f75fecc4f93713
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 27-01-2022 23:11:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/7275472f742c978b1ebeab9ca1f75fecc4f93713 [^]

Related to ISSUE-48461: Fix error in BarcodeScanner test

---
M web-jspack/org.openbravo.core2/src/core/scan/device/__test__/BarcodeScanner.test.js
---