Added template list items.
This commit is contained in:
@@ -23510,6 +23510,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>parts_order</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>parts_order_confirmation</name>
|
<name>parts_order_confirmation</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -23552,6 +23573,48 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>payments_by_job</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>ro_with_description</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>window_tag</name>
|
<name>window_tag</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ function Test({ bodyshop, setEmailOptions }) {
|
|||||||
replyTo: bodyshop.email,
|
replyTo: bodyshop.email,
|
||||||
},
|
},
|
||||||
template: {
|
template: {
|
||||||
name: TemplateList().parts_order_confirmation.key,
|
name: TemplateList().parts_order.key,
|
||||||
variables: {
|
variables: {
|
||||||
id: "a7c2d4e1-f519-42a9-a071-c48cf0f22979",
|
id: "a7c2d4e1-f519-42a9-a071-c48cf0f22979",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export function PartsOrderListTableComponent({
|
|||||||
templateObject={{
|
templateObject={{
|
||||||
name: record.isReturn
|
name: record.isReturn
|
||||||
? TemplateList("partsorder").parts_return_confirmation.key
|
? TemplateList("partsorder").parts_return_confirmation.key
|
||||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
: TemplateList("partsorder").parts_order.key,
|
||||||
variables: { id: record.id },
|
variables: { id: record.id },
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export function PartsOrderModalContainer({
|
|||||||
{
|
{
|
||||||
name: isReturn
|
name: isReturn
|
||||||
? TemplateList("partsorder").parts_return_confirmation.key
|
? TemplateList("partsorder").parts_return_confirmation.key
|
||||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
: TemplateList("partsorder").parts_order.key,
|
||||||
variables: {
|
variables: {
|
||||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||||
},
|
},
|
||||||
@@ -169,8 +169,7 @@ export function PartsOrderModalContainer({
|
|||||||
{
|
{
|
||||||
to: matchingVendor ? [matchingVendor.email] : null,
|
to: matchingVendor ? [matchingVendor.email] : null,
|
||||||
replyTo: bodyshop.email,
|
replyTo: bodyshop.email,
|
||||||
subject: TemplateList("partsorder", {}).parts_order_confirmation
|
subject: TemplateList("partsorder", {}).parts_order.subject,
|
||||||
.subject,
|
|
||||||
},
|
},
|
||||||
"e"
|
"e"
|
||||||
);
|
);
|
||||||
@@ -179,7 +178,7 @@ export function PartsOrderModalContainer({
|
|||||||
{
|
{
|
||||||
name: isReturn
|
name: isReturn
|
||||||
? TemplateList("partsorder").parts_return_confirmation.key
|
? TemplateList("partsorder").parts_return_confirmation.key
|
||||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
: TemplateList("partsorder").parts_order.key,
|
||||||
variables: {
|
variables: {
|
||||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1434,8 +1434,11 @@
|
|||||||
"estimate_detail": "Estimate Details",
|
"estimate_detail": "Estimate Details",
|
||||||
"fippa_authorization": "FIPPA Authorization",
|
"fippa_authorization": "FIPPA Authorization",
|
||||||
"job_notes": "Job Notes",
|
"job_notes": "Job Notes",
|
||||||
"parts_order_confirmation": "Parts Order Confirmation",
|
"parts_order": "Parts Order Confirmation",
|
||||||
|
"parts_order_confirmation": "",
|
||||||
"payment_receipt": "Payment Receipt",
|
"payment_receipt": "Payment Receipt",
|
||||||
|
"payments_by_job": "Job Payments",
|
||||||
|
"ro_with_description": "RO Summary with Descriptions",
|
||||||
"window_tag": "Window Tag",
|
"window_tag": "Window Tag",
|
||||||
"work_authorization": "Work Authorization"
|
"work_authorization": "Work Authorization"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1434,8 +1434,11 @@
|
|||||||
"estimate_detail": "",
|
"estimate_detail": "",
|
||||||
"fippa_authorization": "",
|
"fippa_authorization": "",
|
||||||
"job_notes": "",
|
"job_notes": "",
|
||||||
|
"parts_order": "",
|
||||||
"parts_order_confirmation": "",
|
"parts_order_confirmation": "",
|
||||||
"payment_receipt": "",
|
"payment_receipt": "",
|
||||||
|
"payments_by_job": "",
|
||||||
|
"ro_with_description": "",
|
||||||
"window_tag": "",
|
"window_tag": "",
|
||||||
"work_authorization": ""
|
"work_authorization": ""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1434,8 +1434,11 @@
|
|||||||
"estimate_detail": "",
|
"estimate_detail": "",
|
||||||
"fippa_authorization": "",
|
"fippa_authorization": "",
|
||||||
"job_notes": "",
|
"job_notes": "",
|
||||||
|
"parts_order": "",
|
||||||
"parts_order_confirmation": "",
|
"parts_order_confirmation": "",
|
||||||
"payment_receipt": "",
|
"payment_receipt": "",
|
||||||
|
"payments_by_job": "",
|
||||||
|
"ro_with_description": "",
|
||||||
"window_tag": "",
|
"window_tag": "",
|
||||||
"work_authorization": ""
|
"work_authorization": ""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default async function RenderTemplate(
|
|||||||
) {
|
) {
|
||||||
//Template Object
|
//Template Object
|
||||||
// {
|
// {
|
||||||
// name: TemplateList().parts_order_confirmation.key,
|
// name: TemplateList().parts_order.key,
|
||||||
// variables: {
|
// variables: {
|
||||||
// id: insertResult.data.insert_parts_orders.returning[0].id,
|
// id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||||
// },
|
// },
|
||||||
|
|||||||
@@ -48,6 +48,33 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "job_notes",
|
key: "job_notes",
|
||||||
disabled: false,
|
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"
|
...(!type || type === "appointment"
|
||||||
@@ -65,10 +92,10 @@ export const TemplateList = (type, context) => {
|
|||||||
: {}),
|
: {}),
|
||||||
...(!type || type === "partsorder"
|
...(!type || type === "partsorder"
|
||||||
? {
|
? {
|
||||||
parts_order_confirmation: {
|
parts_order: {
|
||||||
title: i18n.t("printcenter.jobs.parts_order_confirmation"),
|
title: i18n.t("printcenter.jobs.parts_order"),
|
||||||
description: "Parts Order",
|
description: "Parts Order",
|
||||||
key: "parts_order_confirmation",
|
key: "parts_order",
|
||||||
subject: `${bodyshop.shopname} Parts Order ${
|
subject: `${bodyshop.shopname} Parts Order ${
|
||||||
(context &&
|
(context &&
|
||||||
context &&
|
context &&
|
||||||
|
|||||||
Reference in New Issue
Block a user