Openbravo Issue Tracking System - POS2
View Issue Details
0048434POS2POSpublic2022-01-19 16:282022-02-15 14:40
jmelin 
fermin_gascon 
normalmajoralways
closedfixed 
5
 
 
No
0048434: 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.
depends on backport 0048455TAP 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-19 16:28jmelinNew Issue
2022-01-19 16:28jmelinAssigned To => Retail
2022-01-19 16:28jmelinTriggers an Emergency Pack => No
2022-01-20 17:51adrianromeroAssigned ToRetail => adrianromero
2022-01-20 17:52adrianromeroAssigned Toadrianromero => fermin_gascon
2022-01-20 17:52adrianromeroStatusnew => scheduled
2022-02-11 13:02hgbotNote Added: 0134927
2022-02-15 14:40hgbotResolutionopen => fixed
2022-02-15 14:40hgbotStatusscheduled => closed
2022-02-15 14:40hgbotFixed in Version => RR22Q2
2022-02-15 14:40hgbotNote Added: 0134992
2022-02-15 14:40hgbotNote Added: 0134993

Notes
(0134927)
hgbot   
2022-02-11 13:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/713 [^]
(0134992)
hgbot   
2022-02-15 14:40   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: aae6b5695386d0d4889e42a9f78b1204e4516caf
Author: Fermín Gascón <fermin.gascon@openbravo.com>
Date: 15-02-2022 13:40:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/aae6b5695386d0d4889e42a9f78b1204e4516caf [^]

Fixes ISSUE-0048434: WebUSB Can't print a receipt and POS blocked if an image can't be downloaded
* Added timeout on image onload

---
M web/org.openbravo.retail.posterminal/app/webprinter/webprinter.js
---
(0134993)
hgbot   
2022-02-15 14:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/713 [^]