RE: Render statement subsidiary parameter not working
This is my code
var statementOpts = {
entityId: 987,
printMode: render.PrintMode.PDF,
openTransactionsOnly: true,
startDate: “01/01/2023”,
statementDate: “24/09/2023”,
subsidiaryId : 23
}
render.statement(statementOpts)
According to NS documentation it should work, but in my case it keeps generating the statement for the main subsidiary and not the one set.
So is it showing transactions from other subsidiaries?
How / where is the script running and under what role?
Yes,
The transactions from all subsidiaries are displayed on the customer. And when generating the statement with the GUI all is correct.
The code si running on a suitelet as an administrator.
Thanks,
David