Openbravo Issue Tracking System - POS2
View Issue Details
0049061POS2POSpublic2022-04-14 10:252022-04-26 18:31
jmelin 
adrianromero 
highmajoralways
closedfixed 
5
 
 
No
0049061: JIRA 2895 - WebUSB - Association required multiple time
When the POS is configured to use webusb, only one association should be required.
But currently the association can be required several times depending of the context

For example:
- one time when doing an order and printing a ticket
- one time after opening an existing order and printing a duplicate ticket
Requirements :
POS with ESCPOS printer (HP A799) and its drawer

To reproduce:
In BO
Select the POS in the BO, set printer type to "USB Printer" and save

On the POS
Connect to POS or refresh it
Do an order, finalize it and print the ticket
=> OK, a popup is triggered to associate the printer
After selecting the printer, the ticket is printed and drawer is opened

Open an existing order and print a duplicate ticket
=> KO, the popup opened again instead of using the previous association

Close the till (must print a X/Z ticket)
=> KO, the popup opened again instead of using the previous association

Save the association at a global context, so it can be used independently from the gesture use the print a ticket
No tags attached.
related to defect 0049074 closed adrianromero JIRA 2902 - WebUSB - Printer association is required again after logoff or closing the till 
related to defect 0049121 closed Retail JIRA 2911 - WebUSB - association is lost when restarting Chrome/Computer 
? X7fw6Y4O2HhZTj3PXgQEYkTd9TAsk0JshQHQWMWdGNf5JQcKrw3Tw_5YypJ2ATz8Y_pBynnXBYB0PEilBWcWIh56Q4CW6oWWe7GNSpjM2NI6Z85KvG8a9L5XZAjV1I9cXP5nxxnN (35,855) 2022-04-19 12:47
https://issues.openbravo.com/file_download.php?file_id=16907&type=bug
? BNd2ezroAJwJf1FwtjlZrcVJul8kn-K_t6JLrm5kfIe9sUXcbe5bvdWgEOl_dLOSUG75WtdPC1MxH_wwsrV-sH3_xs6CujvIjFDp0m3rBlRQcLZjhMASExN3L6j5iEp-5O8BOAWk (22,903) 2022-04-19 12:47
https://issues.openbravo.com/file_download.php?file_id=16908&type=bug
Issue History
2022-04-14 10:25jmelinNew Issue
2022-04-14 10:25jmelinAssigned To => Retail
2022-04-14 10:25jmelinTriggers an Emergency Pack => No
2022-04-19 12:47guilleaerFile Added: X7fw6Y4O2HhZTj3PXgQEYkTd9TAsk0JshQHQWMWdGNf5JQcKrw3Tw_5YypJ2ATz8Y_pBynnXBYB0PEilBWcWIh56Q4CW6oWWe7GNSpjM2NI6Z85KvG8a9L5XZAjV1I9cXP5nxxnN
2022-04-19 12:47guilleaerFile Added: BNd2ezroAJwJf1FwtjlZrcVJul8kn-K_t6JLrm5kfIe9sUXcbe5bvdWgEOl_dLOSUG75WtdPC1MxH_wwsrV-sH3_xs6CujvIjFDp0m3rBlRQcLZjhMASExN3L6j5iEp-5O8BOAWk
2022-04-19 14:17guilleaerStatusnew => scheduled
2022-04-19 14:17guilleaerAssigned ToRetail => adrianromero
2022-04-19 14:18guilleaerRelationship addedrelated to 0049074
2022-04-21 17:20hgbotNote Added: 0136673
2022-04-26 10:45guilleaerRelationship addedrelated to 0049121
2022-04-26 18:31hgbotResolutionopen => fixed
2022-04-26 18:31hgbotStatusscheduled => closed
2022-04-26 18:31hgbotFixed in Version => RR22Q3
2022-04-26 18:31hgbotNote Added: 0136777
2022-04-26 18:31hgbotNote Added: 0136778

Notes
(0136673)
hgbot   
2022-04-21 17:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/774 [^]
(0136777)
hgbot   
2022-04-26 18:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7f535cebdc6e2eb47aeeef399e4c72856abcbbb9
Author: Adrián Romero <adrian.romero@openbravo.com>
Date: 26-04-2022 16:31:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7f535cebdc6e2eb47aeeef399e4c72856abcbbb9 [^]

Fixes ISSUE-49061: WebUSB - Association required multiple times

---
M web-test/external-device/ExternalDeviceController.test.js
M web/org.openbravo.retail.posterminal/app/external-device/ExternalDeviceController.js
M web/org.openbravo.retail.posterminal/app/webprinter/bluetooth.js
M web/org.openbravo.retail.posterminal/app/webprinter/usb.js
M web/org.openbravo.retail.posterminal/app/webprinter/webprinter.js
M web/org.openbravo.retail.posterminal/js/datasource.js
---
(0136778)
hgbot   
2022-04-26 18:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/774 [^]