Rendering an advanced PDF template on button action.

First create a button using a userevent script to add a button. Use N/record and N/ui/serverWidget modules. The script sample is provided below: We need to create a suitelet script for opening a suitelet page on button action. The URL provided in the window.open function is the suitelet page URL. Use N/record, N/render, N/runtime, N/file… Continue reading Rendering an advanced PDF template on button action.

Display the First Invoice Number on the Invoice Group Advanced PDF/HTML Template

Navigate to Customization > Forms > Advanced PDF/HTLM Templates Locate the Standard Invoice Group(Detailed View) PDF/HTML Template and click Customize or find an existing customized one and click Edit Click Source Code Create a table where you want the information to display Between the <td> and </td> tags, insert the following code:               <#list groupedinvoices_summary as invoice_details><#if invoice_details_index==0>${‌invoice_details.invoicenum}</#if></#list>

Efficient Solution for Displaying Customer GSTIN Number Below the ‘Bill To’ Address in Invoice PDF

We can create a custom GSTIN field in the address book using the ‘Customization’ menu, specifically navigating to ‘Lists, Records & Fields’ and selecting ‘Other Record Fields.’ The GSTIN number for each customer can then be added by editing the respective address field in their customer records. When generating a new invoice and choosing a… Continue reading Efficient Solution for Displaying Customer GSTIN Number Below the ‘Bill To’ Address in Invoice PDF

Integrating a QR code generation functionality into an advanced PDF template.

The below provided HTML code is aimed at integrating a QR code generation functionality into an advanced PDF template. Condition for Barcode Generation (<#if record.custbody_if_parent_waybill_no?has_content>): This line initiates a conditional check using the FreeMarker templating language. It verifies if the “custbody_if_parent_waybill_no” field of a record has content. Barcode Generation (<barcode>): If the condition is met… Continue reading Integrating a QR code generation functionality into an advanced PDF template.

Integrating a Bar code generation functionality into an advanced PDF template.

The below provided HTML code is aimed at integrating a Bar code generation functionality into an advanced PDF template. Condition (<#if record.custbody_if_parent_waybill_no?has_content>): This line initiates a conditional check using the FreeMarker templating language. It checks if the “custbody_if_parent_waybill_no” field of a record has content. Barcode Generation (<barcode>): If the condition is met (i.e., “custbody_if_parent_waybill_no” has… Continue reading Integrating a Bar code generation functionality into an advanced PDF template.