In NetSuite, there is an option to restore your template to a previous version. This version can be saved and used as a backup copy, allowing you to continue customizing and testing without worrying about losing a working template. Errors may occur when applying your source code to the template, and repeated errors can potentially corrupt it. Saving a previously working version helps prevent this issue.
To do this you can follow steps below:
1.Navigate to Customization > Forms > Advanced PDF/HTML Template
2. Preferred Advanced PDF/HTML Template: Edit
3. Take note of the version you are using, this can be seen on the lower left of the page: