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.

sigehelm Rookie Asked on September 24, 2023 in SuiteScript.
Add Comment
7 Answers

Hi All,

The solution to make the subsidiary to work is to create a custom form and make sure the Printing radio button is set on Advance. After that the parameter worked. So you need a custom form, by default it wont work.

Rookie Answered on September 26, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.