Added job intake process for BOD-114
This commit is contained in:
@@ -39,3 +39,19 @@ export default async function RenderTemplate(templateObject, bodyshop) {
|
||||
resolve(data);
|
||||
});
|
||||
}
|
||||
|
||||
export const displayTemplateInWindow = (html) => {
|
||||
try {
|
||||
var newWin = window.open("", "_blank", "toolbar=0,location=0,menubar=0");
|
||||
newWin.document.write(html);
|
||||
|
||||
setTimeout(function () {
|
||||
newWin.document.close();
|
||||
newWin.focus();
|
||||
newWin.print();
|
||||
newWin.close();
|
||||
}, 500);
|
||||
} catch (error) {
|
||||
console.log("Unable to write to new window.", error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -14,9 +14,9 @@ export const TemplateList = {
|
||||
description: "Parts order template including part details",
|
||||
drivingId: "Parts order Id",
|
||||
},
|
||||
test_Template: {
|
||||
title: "Test",
|
||||
description: "Test - does nto exist.",
|
||||
estimate_detail: {
|
||||
title: "Estimate Detail Lines",
|
||||
description: "Est Detail",
|
||||
drivingId: "test does not exist.",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user