Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055497Retail ModulesGift cards and gift voucherspublic2024-05-15 16:582024-09-12 08:32
ivazquez 
SABARINATH P 
highmajoralways
closedfixed 
5
pi 
 
guillermogil
No
0055497: 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.
depends on backport 0056432RR24Q2.3 closed Rajesh_18 Retail Modules Error when printing Gift Card ticket with custom template 
has duplicate defect 0056421 closed Rajesh_18 POS2 RM-16711 [SALES] Some informations are incorrect on the remaining balance ticket of the gift card 
png FirstStep.png (42,732) 2024-05-15 16:59
https://issues.openbravo.com/file_download.php?file_id=19779&type=bug
png

png SecondStep.png (110,872) 2024-05-15 16:59
https://issues.openbravo.com/file_download.php?file_id=19780&type=bug
png

png ThirdStep.png (73,444) 2024-05-15 16:59
https://issues.openbravo.com/file_download.php?file_id=19781&type=bug
png

png FourthStep.png (11,623) 2024-05-15 16:59
https://issues.openbravo.com/file_download.php?file_id=19782&type=bug
png

? issueGiftCardTemplate.mp4 (2,063,315) 2024-05-17 14:53
https://issues.openbravo.com/file_download.php?file_id=19790&type=bug
Issue History
2024-05-15 16:58ivazquezNew Issue
2024-05-15 16:58ivazquezAssigned To => Retail
2024-05-15 16:58ivazquezTriggers an Emergency Pack => No
2024-05-15 16:59ivazquezFile Added: FirstStep.png
2024-05-15 16:59ivazquezFile Added: SecondStep.png
2024-05-15 16:59ivazquezFile Added: ThirdStep.png
2024-05-15 16:59ivazquezFile Added: FourthStep.png
2024-05-15 17:31PracticsIssue Monitored: Practics
2024-05-15 17:58guillermogilStatusnew => acknowledged
2024-05-15 18:18sreehariAssigned ToRetail => sreehari
2024-05-15 18:18sreehariStatusacknowledged => scheduled
2024-05-16 10:30SABARINATH PAssigned Tosreehari => SABARINATH P
2024-05-16 15:16hgbotNote Added: 0164716
2024-05-17 09:16hgbotResolutionopen => fixed
2024-05-17 09:16hgbotStatusscheduled => closed
2024-05-17 09:16hgbotNote Added: 0164731
2024-05-17 09:16hgbotNote Added: 0164732
2024-05-17 14:48ivazquezStatusclosed => new
2024-05-17 14:49ivazquezNote Added: 0164756
2024-05-17 14:52ivazquezFile Added: issueGiftCardTemplate.gif
2024-05-17 14:52ivazquezFile Deleted: issueGiftCardTemplate.gif
2024-05-17 14:53ivazquezFile Added: issueGiftCardTemplate.mp4
2024-05-17 14:54ivazquezNote Added: 0164757
2024-05-17 15:02SABARINATH PStatusnew => scheduled
2024-06-04 10:53hgbotNote Added: 0165515
2024-06-11 06:10hgbotNote Added: 0165754
2024-06-11 06:10hgbotNote Added: 0165755
2024-06-11 06:10guillermogilStatusscheduled => resolved
2024-06-11 06:10guillermogilFixed in Version => RR24Q3
2024-06-11 06:10guillermogilStatusresolved => closed
2024-09-12 06:41guillermogilRelationship addedhas duplicate 0056421
2024-09-12 08:30Rajesh_18Statusclosed => new
2024-09-12 08:30Rajesh_18Resolutionfixed => open
2024-09-12 08:30Rajesh_18Fixed in VersionRR24Q3 =>
2024-09-12 08:31Rajesh_18Statusnew => scheduled
2024-09-12 08:31Rajesh_18Assigned ToSABARINATH P => Rajesh_18
2024-09-12 08:31Rajesh_18Assigned ToRajesh_18 => SABARINATH P
2024-09-12 08:32Rajesh_18Statusscheduled => resolved
2024-09-12 08:32Rajesh_18Resolutionopen => fixed
2024-09-12 08:32Rajesh_18Review Assigned To => guillermogil
2024-09-12 08:32Rajesh_18Statusresolved => closed

Notes
(0164716)
hgbot   
2024-05-16 15:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/333 [^]
(0164731)
hgbot   
2024-05-17 09:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 46698870a6c6e97d6d2b89e29ac5b7c18ae0ea44
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 17-05-2024 10:49:34
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/46698870a6c6e97d6d2b89e29ac5b7c18ae0ea44 [^]

Fixed ISSUE-55497: OverWritten giftcard template which can accept any custom template.

---
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
---
(0164732)
hgbot   
2024-05-17 09:16   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/333 [^]
(0164756)
ivazquez   
2024-05-17 14:49   
Dear Sabarinath,

As we discussed via chat, the change only affects the flow when selling a new gift card, this point was solved.
But if we do the flow explained in the steps to reproduce the ticket, the problem still occurs.

Regards,
Ignacio Vazquez
(0164757)
ivazquez   
2024-05-17 14:54   
Attached video with the new tests
(0165515)
hgbot   
2024-06-04 10:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/344 [^]
(0165754)
hgbot   
2024-06-11 06:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/344 [^]
(0165755)
hgbot   
2024-06-11 06:10   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: ef3b784253644b412ad68ca7e928a0f1c5010d24
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 04-06-2024 14:23:43
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/ef3b784253644b412ad68ca7e928a0f1c5010d24 [^]

Related ISSUE-55497: Overwritten customised giftcard 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
---