Hi,
I added a customized field to an Invoice pdf template, and it is shown when I use the "Print" option in the invoice. However, it is not shown when sending it to the customer as an attachment.
How can I know which template is used for an email attachment, and modified it? I was looking into the email template, but didn't find where the attachment is defined
r
ragnarsparta
03/27/2023, 6:42 PM
Click on an invoice and select customise > customise form in top right corner. Here you'll see what template is being for the Print and Email. Hope this helps.
i
Ida Sivan
03/28/2023, 10:01 AM
That's help thanks.
The template used for both print and email is the same one. Can be another reason why I see the customized field in the print an not in the email attachment?
r
ragnarsparta
03/28/2023, 6:51 PM
What sort of field is it, value, text? And screenshot of the code. I ought to be able to test on my end and hope somethin proves fruitful.
i
Ida Sivan
03/29/2023, 7:14 AM
Good morning,
As I was looking in the code to send it to you, I realized I added the customized field in a switch-case, only for the default, and the print was using it, while the email sent with a different case. I add it to all, and issue was solve. Thank you for your help
✅ 1
r
ragnarsparta
03/29/2023, 8:10 PM
Appreciate the update and glad its resolved, thats certainly a helpful tip to remember as I work on pdf/html templates daily and haven't encountered this yet. Thanks