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.
Hi,
Yes the customer is associated with the subsidiary, the subsidiary can be selected when generating an individual statement with the GUI and works, but when you try the code, it just generates the statement of the main subsidiary and not the one you pass as parameter.
Thanks,
David.