$Payment
Submitted by gretalloyd on Wed, 04/10/2017 - 17:48
Hi,
Can someone please tell me what to use as subject source and content source when I am creating a new Email Template for Receipts.
We have an email template for invoices, which I have edited to be for receipt of payment.
I just can't get it to work with either $receipt or $payment
Re: $Payment
AHAH Greta - who has not pressed Alt-F1 for help - https://openvpms.org/documentation/csh/1.9/admin/template/email/edit which says (in part):
Source Expressions
The Source Expressions can be any expression or variable that sets the object to evaluate the content against. This can be:
So yours is failing because $receipt is not one of the available macro variables.
What you want is something like:
where both the Subject and Content sources have been set to a period.
The Subject expression will just produce some like 'Receipt 123456'. You will want to change this to concat($location.name," - ",openvpms:get(.,"displayName")," ",id)
I have attached the General.odt file. Use this as a guide to adjusting yours - or better edit General.odt to customise for your practice so that you have a cover note that will work for other things such a credit notes etc.
Regards, Tim G
Re: $Payment
Thanks so much Tim. Works perfectly.