Added subject to reminder generation IO-712

This commit is contained in:
Patrick Fic
2021-02-26 15:01:39 -08:00
parent 7e25ca40b8
commit dd067378b5

View File

@@ -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"
); );
}} }}