Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056432Retail ModulesGift cards and gift voucherspublic2024-05-15 16:582024-09-13 07:51
ivazquez 
Rajesh_18 
highmajoralways
closedfixed 
5
pi 
RR24Q2.3 
No
0056432: Error when printing Gift Card ticket with custom template
If you create a new module in which you have a custom template for the Gift Cards template, even if you have everything set correctly the POS will return the following error:

"Unknown template with resource path: ../../../../name.xml"

Reproduced in the latest version in a local environment
Backoffice:

-Create a new template module containing a new gift card template.
-Go to the “Print Templates” window as System Administrator and create a new one of the type “Gift Card Template”, make sure to set the path correctly.
-Switch to client, go to the Products window, and look for the gift card type product.
-Check the “Print Gift Card” option and set the “Gift Card Template” field with the custom template created in previous steps.

WebPOS:
Refresh the Web Pos so that the changes are affected.
Find the Gift Card and try to print it

You will see the error in red at the bottom left.

All these steps are attached to the issue as images.
No tags attached.
blocks defect 0055497 closed SABARINATH P Error when printing Gift Card ticket with custom template 
Issue History
2024-09-12 08:31Rajesh_18Typedefect => backport
2024-09-12 08:31Rajesh_18Target Version => RR24Q2.3
2024-09-12 08:31Rajesh_18Assigned ToSABARINATH P => Rajesh_18
2024-09-12 08:44hgbotNote Added: 0169107
2024-09-13 07:51hgbotResolutionopen => fixed
2024-09-13 07:51hgbotStatusscheduled => closed
2024-09-13 07:51hgbotNote Added: 0169154
2024-09-13 07:51hgbotNote Added: 0169155

Notes
(0169107)
hgbot   
2024-09-12 08:44   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/372 [^]
(0169154)
hgbot   
2024-09-13 07:51   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 55ee9bbaaed2dc2d63089ca1227d1ca6717c17b7
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 12-09-2024 12:24:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/55ee9bbaaed2dc2d63089ca1227d1ca6717c17b7 [^]

Fixed ISSUE-56432: Overwritten default giftcard template with customized template

---
M web-jspack/org.openbravo.retail.giftcards/src/model/giftcard/actions/SendPrintGiftCardMessageActionPreparation.js
M web-jspack/org.openbravo.retail.giftcards/src/model/giftcard/actions/__test__/SendPrintGiftCardMessageActionPreparation.test.js
M web-jspack/org.openbravo.retail.giftcards/src/model/ticket/actions/CompleteTicketPostHooks.js
M web-jspack/org.openbravo.retail.giftcards/src/model/ticket/actions/__test__/CompleteTicketPostHooks.test.js
---
(0169155)
hgbot   
2024-09-13 07:51   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/372 [^]