Openbravo Issue Tracking System - POS2
View Issue Details
0049480POS2Restaurantspublic2022-06-06 01:512022-06-20 17:22
mmohammad 
adrianromero 
normalcriticalhave not tried
closedfixed 
5
 
 
No
0049480: FLUN-3051 - Offline - print is not working
In offline mode , it’s impossible to print a proof of payment , a ticket X or Z

Environment : fs int

Store : Lens

User : 6900


Prereq ; cut all the accesses to the networks and the cash register must be in offline mode, have a terminal pos with a printer configured in webusb

Steps to reproduce: On pos try to print a proof of payment, try to print a ticket X, try to close the cash register and print Z ticket

Expected result : An offline printing of the proof of payment, the X and Z ticket

Obtained result : The different printings end with the error "failed to fetch".
No tags attached.
Issue History
2022-06-06 01:51mmohammadNew Issue
2022-06-06 01:51mmohammadAssigned To => Retail
2022-06-06 01:51mmohammadTriggers an Emergency Pack => No
2022-06-16 12:38AugustoMauchAssigned ToRetail => adrianromero
2022-06-16 12:40AugustoMauchNote Added: 0138410
2022-06-20 17:01hgbotNote Added: 0138583
2022-06-20 17:22hgbotResolutionopen => fixed
2022-06-20 17:22hgbotStatusnew => closed
2022-06-20 17:22hgbotNote Added: 0138584
2022-06-20 17:22hgbotNote Added: 0138585

Notes
(0138410)
AugustoMauch   
2022-06-16 12:40   
Problem seems to be related to print templates, there are some requests being issued even while being offline:

(anonymous) (POS2.js:15140)
Promise.catch (async)
(anonymous) (POS2.js:15135)
n (POS2.js:15110)
get (POS2.js:15269)
(anonymous) (printTemplateInitializer.js:93)
cN (printTemplateInitializer.js:41)
await in cN (async)
initialize (POS2.js:32253)
generate (POS2.js:32215)
hb (GeneratePopPrintData.js:24)
a (ProofOfPaymentGlobalActions.js:177)
(anonymous) (ProofOfPaymentGlobalActions.js:279)
(anonymous) (ProofOfPaymentGlobalActions.js:277)
e (POS2.js:9368)
await in e (async)
<computed>.<computed> (POS2.js:9540)
action (StateUserAction.js:61)
launch (UserAction.js:176)
await in launch (async)
(anonymous) (getUserAction.js:35)
g (BaseMenu.jsx:206)
onClick (BaseButton.jsx:86)
(0138583)
hgbot   
2022-06-20 17:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1020 [^]
(0138584)
hgbot   
2022-06-20 17:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f0770be3248fef35e33b9569dd7a3fcf549051c9
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 20-06-2022 16:56:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f0770be3248fef35e33b9569dd7a3fcf549051c9 [^]

Fixed ISSUE-49480: Refactor getXmlTemplate to to do get request with params equal to null

---
M web-jspack/org.openbravo.pos2/src/services/printing/__test__/printTemplateInitializer.test.js
M web-jspack/org.openbravo.pos2/src/services/printing/printTemplateInitializer.js
---
(0138585)
hgbot   
2022-06-20 17:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1020 [^]