Frankie
September 23, 2016, 6:44am
1
I’ve created a invoice template in html where the invoice number has a year and costumer id as prefix like this.
{{ issue_date | date:“yyyy” }}{{ customer.code }}{{ reference }}
When i put this code in the subject field of the mail template it only shows the reference (i have tried this with and without the spaces). How can i solve this?
ntrim
September 23, 2016, 7:17am
2
Try this for the year
{{ issue_date | date: “%Y” }}
Frankie
September 23, 2016, 7:28am
3
Thanks, but the code doesn’t work in the email template.
{{ issue_date | date:“yyyy” }}{{ customer.code }}{{ reference }} this works on the invoice but not in the subject field of the email template.
Hans
September 23, 2016, 11:38am
4
At the moment, only one variable is supported on email templates and that is {{reference}} in subject line.
So, under email templates, use subject QUOTE {{reference}}
This is from an old topic. But since I haven’t read anything about new variables for email, I think still valid.
Frankie
September 23, 2016, 11:58am
5
@Hans Thanks.
@lubos Is it possible to add or are there more variables i can use for the email template subject line.