If the tax type is IGST, we should display the IGST. If the tax type is not IGST, both SGST and CGST should be displayed. You can use the provided sample code to display either IGST or both CGST and SGST along with their respective values. <#– Find matching tax details –> <#list… Continue reading Calculate IGST, or SGST and CGST in advanced PDF template
Tag: advance pdf template
Display Components on Transactions Checkbox in NetSuite Group Items
The “Display Components on Transactions” checkbox in a Group Item record controls whether individual items in a group appear on transactions like Credit Memo PDFs. Checked: Displays all component items with their quantities, prices, and descriptions on transactions for transparency. Unchecked: Shows only the group item as a single line, keeping components hidden. Inventory and… Continue reading Display Components on Transactions Checkbox in NetSuite Group Items
Freemarker Decimal Truncation
<#– Initialize the formatted dimensions string –> <#assign formatted_dimensions = “” /> <#– Function to truncate the decimal part to a maximum of 3 places without rounding –> <#function truncateTo3DecimalPlaces number> <#– Convert the number to a string without rounding and split at the decimal point –> <#assign numberString = number?string(“0.0################”)… Continue reading Freemarker Decimal Truncation
Comparing Checkbox Field in Advanced PDF Template
When evaluating a custom Boolean field (e.g., custentity_custom_field) in a condition, it should be compared as a Boolean, not as a string. Incorrect Comparison: <#if record.custentity_custom_field == “T”> This comparison will result in an error because custentity_custom_field is a Boolean, while “T” is a string. Correct Comparison: <#if record.custentity_custom_field> Here, the field is evaluated directly.… Continue reading Comparing Checkbox Field in Advanced PDF Template
Fixing Stretched Letters in Tables
Understanding the Issue: When creating NetSuite PDFs, you may encounter a common problem where the text within table cells becomes stretched or uneven. This occurs due to the default justification behavior of NetSuite’s BFO (BFO Framework) rendering engine. The Solution: Overriding Default Justification To prevent text stretching and ensure a clean, consistent appearance, we need… Continue reading Fixing Stretched Letters in Tables
Designing a Full-Page Fixed-Height Item Table in Advanced PDF Using XML Freemarker Template.
In business document layouts, such as invoices or order summaries, it’s essential to maintain a consistent and professional appearance regardless of the number of items listed. One common requirement is to have the item table fill the entire page, even if only a few items are present. This ensures a uniform look and prevents awkward… Continue reading Designing a Full-Page Fixed-Height Item Table in Advanced PDF Using XML Freemarker Template.
Remove Cents Part in Total Amount in Words When Printing Checks
Navigate to Customization > Forms > Advanced PDF/HTML Templates Preferred Check PDF/HTML Template: Click Edit Source Code: Click the Toggle Switch Button Note: If the template is already in Source Code Mode, you may skip Step 3 Press Ctrl + F Search for the code ${check.totalwords} Replace it with this code: <#assign totalWordsArr = check.totalwords?split(‘… Continue reading Remove Cents Part in Total Amount in Words When Printing Checks
List the details of each applied bills in a check PDF template
By default, Apply sublist items are not printed on check templates. However, you can customize the check template as follows to include the Apply sublist. <#if check.apply?has_content> <table > <#list check.apply as apply> <tr> <td >${apply.refnum}</td><td “>${apply.applydate}></td><td >${apply.amount}</td><td “> </tr> </#list></table> </#if>
Proposal for Implementing Product Specification Document in NetSuite
Proposal Summary The Proposal Covers the scope of the development and implementation of a Product Specification Document for Item Records in NetSuite. The document will feature a static header on all pages, include product images, package images, barcode generation, carton details, and a revision history. Users can generate the document directly from the item record… Continue reading Proposal for Implementing Product Specification Document in NetSuite