Discussions
Manufacturing operation task record (WIP) print - suitescript
we want to create the option to be able to print Manufacturing operation task record.
it is not supported by the advanced pdf/html vanilla so we need to execute it via suitescript.
we are getting an unexpected error.
any advise on the error or on other best practice related Manufacturing operation task record (WIP) printing
script:
let manufacturingOperationTask = record.load({
type: "manufacturingoperationtask",
id: 121
});
// Get the default Advanced PDF/HTML Template for Manufacturing Operation Tasks
let renderer = render.create();
// renderer.setTemplateById(22); // Custom Bill of Materials PDF/HTML Template
renderer.setTemplateByScriptId({
scriptId: "STDTMPLBOM"
});
// Set data for the template (customize this part based on your actual fields)