Added subject to reminder generation IO-712
This commit is contained in:
@@ -80,12 +80,13 @@ export function ScheduleEventComponent({
|
|||||||
) : null}
|
) : null}
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
const Template = TemplateList("job").appointment_reminder;
|
||||||
GenerateDocument(
|
GenerateDocument(
|
||||||
{
|
{
|
||||||
name: TemplateList("job").appointment_reminder.key,
|
name: Template.key,
|
||||||
variables: { id: event.job.id },
|
variables: { id: event.job.id },
|
||||||
},
|
},
|
||||||
{ to: event.job && event.job.ownr_ea },
|
{ to: event.job && event.job.ownr_ea, subject: Template.subject },
|
||||||
"e"
|
"e"
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user