Added dates to render template & email test IO-636

This commit is contained in:
Patrick Fic
2021-02-04 16:21:11 -08:00
parent e90dc8a9ec
commit aa1f5c6b06
2 changed files with 49 additions and 51 deletions

View File

@@ -13,14 +13,6 @@ export default async function RenderTemplate(
bodyshop,
renderAsHtml = false
) {
//Template Object
// {
// name: TemplateList().parts_order.key,
// variables: {
// id: insertResult.data.insert_parts_orders.returning[0].id,
// },
// },
//Query assets that match the template name. Must be in format <<templateName>>.query
jsreport.headers["Authorization"] =
@@ -67,6 +59,7 @@ export default async function RenderTemplate(
},
data: {
...contextData,
...templateObject.variables,
headerpath: `/${bodyshop.imexshopid}/header.html`,
bodyshop: bodyshop,
},