Openbravo Issue Tracking System - POS2
View Issue Details
0048455POS2POSpublic2022-01-19 16:282022-02-15 17:57
jmelin 
fermin_gascon 
normalmajoralways
closedfixed 
5
 
TAPTAP 
adrianromero
No
0048455: JIRA 2615 - WebUSB - can't print a receipt and POS blocked if an image can't be downloaded
When printing a receipt using webusb
If an image to print can't be downloaded from the central server (server unavailable or file not found)
Then the receipt is not printed and the POS is blocked (can't close the current order)

In any case this should block the POS.
If an image is not available, then the receipt should be printed without it anyway.

Another point of improvement;

download the image that can be used on ticket when opening the POS and store them in indexdb or local storage (see also https://openbravo.atlassian.net/browse/FLUN-736 [^])
the image are then always available to be printed on the POS
Use a template of receipt that contains image to download from the central server.
(make sure the image is not in cache)

Connect to POS2
Disconnect network
Create an order and chose to print the receipt

=> KO, an error is triggered because the image is not available, the receipt is not printed and the order is blocked on the payment page
No tags attached.
blocks defect 0048434 closed fermin_gascon JIRA 2615 - WebUSB - can't print a receipt and POS blocked if an image can't be downloaded 
Issue History
2022-01-20 17:52adrianromeroTypedefect => backport
2022-01-20 17:52adrianromeroTarget Version => TAP
2022-02-15 17:51guilleaerNote Added: 0135023
2022-02-15 17:57guilleaerStatusscheduled => resolved
2022-02-15 17:57guilleaerFixed in Version => TAP
2022-02-15 17:57guilleaerResolutionopen => fixed
2022-02-15 17:57guilleaerReview Assigned To => adrianromero
2022-02-15 17:57guilleaerStatusresolved => closed

Notes
(0135023)
guilleaer   
2022-02-15 17:51   
https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.posterminal/-/merge_requests/23 [^]