Hello everyone, I am trying to generate statement ...
# suitescript
n
Hello everyone, I am trying to generate statement pdfs for customer using
render.statement
and passing the
subsidiaryId
options for various subsidiaries that the customer could have, however it only seems to generate pdf for the customer and its primary subsidiary. Here is a snippet of what I am doing:
Copy code
var statementFile = render.statement({
   entityId: customerId,
   printMode: render.PrintMode.PDF,
   subsidiaryId: 123, //hardcoded subsidiary id that is not the primary subsidiary
   openTransactionsOnly: true,
   startDate: startDate,
   statementDate: statementDate
})
Has anyone seen this issue? stanley-ai says
subsidiaryId
options does not work, just wanted to make sure
a
I'm not familiar with it but there's a note on that param in the docs saying it only works with advance printing... which I'm assuming is referring to the statement template.
n
Thank you for pointing that you - I should have read the doc better. That does seem to be the issue, the customer form was set to basic printing
👍 2