For adding an image as background for Advanced PDF template. Use below code
Tag: advanced PDF template
Display SO Item Table in Customer Deposit PDF.
Currently, the customer deposit standard print doesn’t provide a direct connection to SO and print item table in Advanced PDF template. SOLUTION Create a UE script in customer deposit and create a custom hidden field to store the SO item data and fetch this data in advanced pdf template and print the table And on… Continue reading Display SO Item Table in Customer Deposit PDF.
Condition to fetch the Address from the Subsidiary record of NetSuite into advanced pdf template.
Condition to fetch Address from the Subsidiary record of NetSuite.
How to append an existing PDF to a PDF template
When we need to add a static PDF page in a PDF template. The user can create the static PDF file separately and can append it to the PDF template. This can be achieved by <pdfset>. <pdfset><pdf><!— Enter the PDF template here–></pdf><pdf src=”${url}” /> </pdfset> Here the url is the PDF file url.
Add link in Advanced PDF template
Show a link in advanced pdf if the field has value. Sample code is adding below. <#if record.custbody_jj_stripepaymentlink?has_content>click here</#if> so, it will check ‘record.custbody_jj_stripepaymentlink’ field has value or not. If there is value, then it will show the field in the template.
Dynamically Printing the Currency Symbol Depending on the Total
When using the Standard Advanced PDF/HTML Template the currency will always print the US Dollar sign. applying this changes will print the correct symbol of the currency on the total. Solution Navigate to Customization > Forms > Advanced PDF/HTML Template Click Edit beside the Preferred Customer Payment PDF/HTML Template Top Right Corner: Toggle Source Code Add the code below: Click Save
Add QR Code in Advanced PDF Template
codetype = qrcode Sample – <barcode codetype=”qrcode” height=”100px” showtext=”true” value=”Company Name:${subsidiary.name};VAT Number:${record.vatregnum};VAT Amount:${record.taxtotal};Grand Total:${record.total}”/> The data in the “Value” part will display when scanning the QR code. We can also give static values to the QR Code.
Remove a part of String in Advanced PDF template
These are the built-ins for the Advanced PDf template 1. Keep afterRemoves the part of the string that is not after the first occurrence of the given substring. Ex: ${item.employeefullname?keep_after(” “)} – This removes the string before the first occurrence of “space”. That is if the employee’s name is “E170 John Mathew” then the result… Continue reading Remove a part of String in Advanced PDF template