If I send an email from the Invoice module, for example “Email PDF”, and select an invoice email template then the inserted fields do not get populated. That is, fields such as $aos_invoices_invoice_date are not replaced by their actual value.
When sending emails from the Work Flow module everything works fine.
Since all the fields in the invoice email template come from the Invoices module I assume they should get a value in the actual email.
I have created invoice PDF template. I can generate Invoice PDF, send email with the invoice attached, send email with the invoice inserted into email body.
But i cant insert invoice fields i.e. $aos_invoices_total_amount into email body.
Create invoice pdf template
Create email template containing invoice variables, i.e. $aos_invoices_total_amount
In the invoce module, action menu chose email pdf
Email compose window opens with blank email text and with pdf attached.
I chose email template created earlier.
But the invoice fields are empty in email body.