Hi, I added a customized field to an Invoice pdf t...
# advancedpdf
i
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
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
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
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
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
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