For customers, patients and suppliers, a 'New Letter' button is required to simplify the creation of letters.
When pressed, the New Letter button displays a dialog containing the list of available templates for the customer/patient/supplier. This can be filtered on name.
When a template is selected:
any parameters in it will be prompted for
the document and corresponding act will be generated using the current context and saved
for letters generated from OpenOffice/Word templates, the relevant editor will automatically be launched to edit the document
for letters generated from other templates, the standard OpenVPMS act editor will be displayed
The template and document fields will be read-only.