Added dates to render template & email test IO-636
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user