Mr_Tib
07/24/2023, 6:02 PMnlapiPrintRecord
method to print a customer's statement (id 1023) for a specific subsidiary. I've followed the documentation, however the specified subsidiary gets ignored every time. Here's the relevant part:
var sdate = new Array();
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);
battk
07/24/2023, 6:21 PMMr_Tib
07/24/2023, 6:26 PMbattk
07/24/2023, 7:16 PMMr_Tib
07/24/2023, 7:24 PM