Render statement subsidiary parameter not working
This is my code
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 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.
Hi,
I’ve got almost identical code and it’s working as expected.
Is the customer definitely associated with this subsidiary?
Thanks,
Chris
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
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.
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
Yes all transactions are show on the customer. The statement is correctly created with the GUI, the subsidiary filter works.
But when I tries the same on suitescript is does not, que script is a suitelet that si ran as administrator.
Thanks,
David
Good spot! Glad you’ve got it working.
Hi Sigehelm,
I am a newbie for this. I have some question and problem like you.
Where did you use your code? Could you share to me?
And Do this code run via API? If it’s true, please give me URL
Thanks!



