Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054851Retail ModulesGift cards and gift voucherspublic2024-03-05 18:102024-03-05 18:10
kchoperena 
Retail 
highmajoralways
newopen 
5
 
 
No
0054851: To use a custom template for giftcards, it is mandatory to register a PrintTemplateStore in a ob-init.js
There is no way without coding to use a custom template for Gift Cards

The usage of a custom template requires the registration of a PrintTemplateStore, if not, the code is not able to find the resource in the available templates

Example of a required code:
  OB.App.PrintTemplateStore.register(
    'printGiftCardGifiTemplate',
    '../com.openbravo.gifi.report/res/giftcard.xml',
    { isLegacy: false }
  );
1.- Create a custom template and defined it in "Print Templates"
2.- Configure it at Product level for a gift card product
In the POS2:
1.- Include the gift card product on the receipt
2.- Pay it and complete the receipt
3.- Try to print the result

EXPECTED RESULT:
An error appears because the code is not able to find the template
No tags attached.
Issue History
2024-03-05 18:10kchoperenaNew Issue
2024-03-05 18:10kchoperenaAssigned To => Retail
2024-03-05 18:10kchoperenaTriggers an Emergency Pack => No

There are no notes attached to this issue.