Modules
Objects/Functions
SuiteScript 2.0
{render}.statement({entityId: {number*},printMode: {string},formId: {number},startDate: {Date},statementDate: {Date},openTransactionsOnly: ${7:boolean},inCustLocale: ${8:boolean},consolidateStatements: ${9:boolean}})
N/render Module
render.statement()
Method Description:
Use this method to create a PDF or HTML object of a statement.
Returns:
file.File that contains a PDF or HTML document
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
10 units
Module:
N/render Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=render.statement(options)
Example:
// Code Example 1
//Add additional code
//...
var transactionFile = render.statement({
entityId: 23,
printMode: render.PrintMode.HTML,
inCustLocale: true
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_455095458983.html