Added template list items.

This commit is contained in:
Patrick Fic
2021-02-04 15:30:05 -08:00
parent c3d1de592a
commit 862511263f
9 changed files with 109 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ export default async function RenderTemplate(
) {
//Template Object
// {
// name: TemplateList().parts_order_confirmation.key,
// name: TemplateList().parts_order.key,
// variables: {
// id: insertResult.data.insert_parts_orders.returning[0].id,
// },

View File

@@ -48,6 +48,33 @@ export const TemplateList = (type, context) => {
key: "job_notes",
disabled: false,
},
ro_with_description: {
title: i18n.t("printcenter.jobs.ro_with_description"),
description: "All Jobs Notes",
subject: `${i18n.t("printcenter.jobs.ro_with_description")} - ${
context && context.job && context.job.ro_number
}`,
key: "ro_with_description",
disabled: false,
},
window_tag: {
title: i18n.t("printcenter.jobs.window_tag"),
description: "All Jobs Notes",
subject: `${i18n.t("printcenter.jobs.window_tag")} - ${
context && context.job && context.job.ro_number
}`,
key: "window_tag",
disabled: false,
},
payments_by_job: {
title: i18n.t("printcenter.jobs.payments_by_job"),
description: "All Jobs Notes",
subject: `${i18n.t("printcenter.jobs.payments_by_job")} - ${
context && context.job && context.job.ro_number
}`,
key: "payments_by_job",
disabled: false,
},
}
: {}),
...(!type || type === "appointment"
@@ -65,10 +92,10 @@ export const TemplateList = (type, context) => {
: {}),
...(!type || type === "partsorder"
? {
parts_order_confirmation: {
title: i18n.t("printcenter.jobs.parts_order_confirmation"),
parts_order: {
title: i18n.t("printcenter.jobs.parts_order"),
description: "Parts Order",
key: "parts_order_confirmation",
key: "parts_order",
subject: `${bodyshop.shopname} Parts Order ${
(context &&
context &&