Charlie
05/27/2026, 6:39 AMCeligo AI
05/27/2026, 6:39 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that generating a customer statement using SuiteScript is possible. However, it's important to note that customer statements are represented as a file, not a record. In SuiteScript 1.0, you can use the
nlapiPrintRecord method to print a customer's statement. However, there seems to be an issue with the subsidiary parameter being ignored. Here's a sample code snippet:
javascript
var sdate = {};
sdate.startdate = '01/01/2023';
sdate.openonly = 'T';
sdate.subsidiary = 3;
//Prints an empty array
nlapiLogExecution('DEBUG', 'Array: ', JSON.stringify(sdate));
// Try to print the statement using nlapiPrintRecord method
var stFile = nlapiPrintRecord('STATEMENT', 1023, 'PDF', sdate);
Please note that the nlapiPrintRecord method requires the printType, recordType, recordId, and properties parameters. In this case, the printType is 'STATEMENT', the recordId is 1023, the outputType is 'PDF', and the properties is an object containing the startdate, openonly, and subsidiary.
Also, there was a conversation about issues with printing statements after a NetSuite upgrade. It was suggested that commented out code in the template could cause issues, and removing it might resolve the problem.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
05/27/2026, 6:40 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798828125
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.788391113
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.786804199
Celigo AI
05/27/2026, 6:40 AM