From e31a7eb65fc733fb33b8eb7f8450c21615e5e301 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 14 Apr 2022 10:23:09 -0700 Subject: [PATCH] Resolve third party payer template issue. --- .../job-3rd-party-modal/job-3rd-party-modal.component.jsx | 4 ++-- client/src/utils/RenderTemplate.js | 1 + client/src/utils/TemplateConstants.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx b/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx index 3ecc5e9eb..faf43b492 100644 --- a/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx +++ b/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx @@ -49,11 +49,11 @@ export function Jobd3RdPartyModal({ bodyshop, jobId }) { GenerateDocument( { - name: TemplateList("job_special").thirdpartypayer.key, + name: TemplateList("job_special").special_thirdpartypayer.key, variables: { id: jobId }, context: restVals, }, - { subject: TemplateList("job_special").thirdpartypayer.subject }, + { subject: TemplateList("job_special").special_thirdpartypayer.subject }, sendtype ); }; diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index bead47e5a..463a56fac 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -24,6 +24,7 @@ export default async function RenderTemplate( let { contextData, useShopSpecificTemplate } = await fetchContextData( templateObject ); + console.log(templateObject.name) const { ignoreCustomMargins } = Templates[templateObject.name]; let reportRequest = { diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index 2d5a686a7..b44ab3b21 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -476,7 +476,7 @@ export const TemplateList = (type, context) => { : {}), ...(!type || type === "job_special" ? { - thirdpartypayer: { + special_thirdpartypayer: { title: i18n.t("printcenter.jobs.thirdpartypayer"), description: "CSI invite", key: "special_thirdpartypayer",