Merged in release/2022-04-15 (pull request #447)

Resolve third party payer template issue.
This commit is contained in:
Patrick Fic
2022-04-14 17:48:23 +00:00
3 changed files with 4 additions and 3 deletions

View File

@@ -49,11 +49,11 @@ export function Jobd3RdPartyModal({ bodyshop, jobId }) {
GenerateDocument( GenerateDocument(
{ {
name: TemplateList("job_special").thirdpartypayer.key, name: TemplateList("job_special").special_thirdpartypayer.key,
variables: { id: jobId }, variables: { id: jobId },
context: restVals, context: restVals,
}, },
{ subject: TemplateList("job_special").thirdpartypayer.subject }, { subject: TemplateList("job_special").special_thirdpartypayer.subject },
sendtype sendtype
); );
}; };

View File

@@ -24,6 +24,7 @@ export default async function RenderTemplate(
let { contextData, useShopSpecificTemplate } = await fetchContextData( let { contextData, useShopSpecificTemplate } = await fetchContextData(
templateObject templateObject
); );
console.log(templateObject.name)
const { ignoreCustomMargins } = Templates[templateObject.name]; const { ignoreCustomMargins } = Templates[templateObject.name];
let reportRequest = { let reportRequest = {

View File

@@ -476,7 +476,7 @@ export const TemplateList = (type, context) => {
: {}), : {}),
...(!type || type === "job_special" ...(!type || type === "job_special"
? { ? {
thirdpartypayer: { special_thirdpartypayer: {
title: i18n.t("printcenter.jobs.thirdpartypayer"), title: i18n.t("printcenter.jobs.thirdpartypayer"),
description: "CSI invite", description: "CSI invite",
key: "special_thirdpartypayer", key: "special_thirdpartypayer",