Merged in release/2022-04-15 (pull request #447)
Resolve third party payer template issue.
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user