Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045827Retail ModulesWeb POSpublic2021-02-01 17:212021-02-02 19:57
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
RR21Q2 
marvintm
No
0045827: Transform forcedtemplate in case an old OB.DS.HWResource is provided
Old OBPRINT_PrePrint hooks had the ability to provide a template to be used when printing a ticket, overriding the standard behavior.

The new print engine must take into account whether this parameter provided by the hook can be a OB.DS.HWResource. In that case it is necessary to transform it into a PrintTemplate so it can be processed without a failure.
1) Create a OBPRINT_PrePrint hook
2) Pass an OB.DS.HWResource as forcedtemplate
3) The printing process fails
No tags attached.
related to feature request 0045634 closed Retail Reimplement printing infrastructure 
Issue History
2021-02-01 17:21caristuNew Issue
2021-02-01 17:21caristuAssigned To => Retail
2021-02-01 17:21caristuTriggers an Emergency Pack => No
2021-02-02 10:48hgbotResolutionopen => fixed
2021-02-02 10:48hgbotStatusnew => resolved
2021-02-02 10:48hgbotFixed in Version => RR21Q2
2021-02-02 10:48hgbotNote Added: 0125939
2021-02-02 10:49caristuRelationship addedrelated to 0045634
2021-02-02 10:49caristuReview Assigned To => marvintm
2021-02-02 10:49caristuStatusresolved => closed
2021-02-02 10:50caristuNote Added: 0125940
2021-02-02 19:54caristuAssigned ToRetail => caristu
2021-02-02 19:57caristuIssue cloned0045837
2021-02-02 19:57caristuRelationship addedrelated to 0045837
2021-02-03 12:25caristuRelationship deletedrelated to 0045837

Notes
(0125939)
hgbot   
2021-02-02 10:48   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 37db88ab9d5f907e8ca1fd7f3d8f9b9a97a64e06
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-02-02T10:47:38+01:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/37db88ab9d5f907e8ca1fd7f3d8f9b9a97a64e06 [^]

fixes ISSUE-45827: support OB.DS.HWResource forced template

---
M web/org.openbravo.retail.posterminal/app/external-device/printing/TicketPrinter.js
---
(0125940)
caristu   
2021-02-02 10:50   
MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/282 [^]