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",