Below is the code for rotating the barcode caption in 270° <table width=“100%”> <tr> <td align=“left” rotate=“-90” width=“20%” vertical-align=“bottom”> Caption-1 … Continue reading Rotate Element in PDF Template for BarCode caption
Tag: PDF Templates
Lexical error in Advanced PDF Templates
a lexical error generally refers to an issue with the syntax or structure of code. In the context of a PDF template, especially in systems like NetSuite that use template languages (e.g., FreeMarker), this can occur when there is an invalid token, character, or improperly written expression in the template. Such errors could arise from:… Continue reading Lexical error in Advanced PDF Templates
Unable to search keywords in the NetSuite template page – Fix
I recently found that it is not directly possible to search any keywords using the standard browser search method inside the NetSuite template page when the ‘source’ toggle is on. This is because the browser considers the source code section inside the template page as a raw HTML element and not text. This was confusing… Continue reading Unable to search keywords in the NetSuite template page – Fix
Company Information Element on PDF Layouts
Company Information displayed on PDF Layouts can be sourced from one of three areas: The Default Company Address information set for the company found under Setup > Company > Company Information > Address fieldNote: For OneWorld Accounts the Subsidiary Address will be displayed (can be found by navigating to Setup > Company > Classifications > Subsidiaries > Address subtab > Address field of a particular Subsidiary selected) When using custom transaction… Continue reading Company Information Element on PDF Layouts
Resolve Error: “Error Parsing XML: The entity name must immediately follow the ‘&’ in the entity reference”
This issue is normally seen in PDF and XML file of the pdf template which are rendered through script. This happens when our data contains ‘&’. ‘&’ are not supported in pdf and xml. Instead need to use ‘&’ Solution This can be resolved by using replace() function Example: If you are updating Advanced PDF… Continue reading Resolve Error: “Error Parsing XML: The entity name must immediately follow the ‘&’ in the entity reference”
Unable to Show Kit Components on Sales Order PDF Template
Scenario Kit Components are not appearing on the Sales Order PDF Template even if theDisplay Components on Transactions has been enabled on the Item Record. Solution The preference of Display Components on Transactions is applied to the sales orders by the time the item is added on the sales order. If the preference is not enabled by the time the… Continue reading Unable to Show Kit Components on Sales Order PDF Template
Proposal for Supply Allocation Feature with BO Summary Print PDF
Proposal Summary Flowco Ltd t/a Waterworks would like to add back order details to sales order and automated notifications as needed Requirement To allocate back-order items to existing purchase orders and when the goods are received into stock, they need to commit to the correct orders that have been previously allocated to this PO. The… Continue reading Proposal for Supply Allocation Feature with BO Summary Print PDF
Function to Render Template File
Replacing Barcode Number on Invoice Form
In order to replace the barcode number with scannable barcode of type “EAN” use <barcode> tag in the pdf template. But using the code results an error In order to bring the EAN type of barcode in the invoice form use code:
Advanced PDF sublist amount calculation
Advanced PDF templates transaction item sublist amount calculation. The below sample code shows the calculation of item amount for non-negative values. The lines with zero amounts are skipped and the positive values are calculated.