I'm currently running into the problem where a tra...
# suitescript
d
I'm currently running into the problem where a transaction is being printed on a specific form but it sometimes fails to do that. In the code a specific form is being chosen and supplied to
render.transaction
but the resulting pdf uses a different form. I log the chosen form beforehand, and in each case this happened it was the correct form. The transactions being sent before and after that used that form where printed correctly and the content of the Advanced PDF Template that belongs to that form hasn't changed in the mean time. This has happened a couple times now on various times and days and I'm at a loss on what it could possible be. Does anyone have an idea?
r
Sometimes the form are saved in the record, can this be the cause of your issue. System might be using the template associated to the form attached to the record and not the one set via script
d
It could, the default form for the record has a different template then the one I'm trying to send. It also doesn't happen the other way around. Whenever the template that's on the default form needs to be sent it works fine. I'm mostly just confused why it only happens sometimes, without any error messages. Because the transaction then looks completely different on the other form it is also very unprofessional looking