Journal Creation Script

Creation of a Journal Record based on Dynamic Filters in search in getting the data. We are getting the data from weekly timesheet record.  /*** @NApiVersion 2.1  * @NScriptType MapReduceScript  */ define([     “N/search”,     “N/config”,     “N/format”,     “N/record” ], (search, config, format, record) => {     /**  … Continue reading Journal Creation Script

How to Add Serial Sequence number in Advanced PDF Templates

<#if record.item?has_content> <table style=”width: 100%;  border: 1px solid black; margin-top:10px; “> <!– start items –> <#list record.item as item> <#assign totalValue = totalValue + item.amount> <#if item_index==0> <tr colspan = “20”> <th colspan=”3″ border-bottom=”1″ border-right=”1″ align=”center”>SI No</th> <th colspan=”10″ border-bottom=”1″ border-right=”1″ align=”center”>Details of items with all specification</th> <th colspan=”3″ border-bottom=”1″ border-right=”1″ align=”center”>Qty in Nos</th> <th… Continue reading How to Add Serial Sequence number in Advanced PDF Templates

How to Add Orderd List in Advanced PDF templates

<table style=”width: 100%;  border: 1px solid black; margin-top:10px; “>   <tr colspan = “20”>     <td colspan = “20” border-bottom=”1″><b>Terms and Conditions</b></td>   </tr>    <tr colspan = “20”>     <td colspan = “20”> <ol> <li>Payment term: Price inclusive of all taxes etc.</li> <li>Tax exemption: GST is exempted since working under Special Economic… Continue reading How to Add Orderd List in Advanced PDF templates

How to fit a background image to a PDF template

   <macro id=”watermark”>   <div style=”position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;”>     <img src=”https://td2895498.app.netsuite.com/core/media/media.nl?id=3469&amp;c=TD2895498&amp;h=xnOQ9Xtr1A20WneG2FLf2m0qx8OH4sR9AuLJhHo-5Q5lhWF_” style=”width: 11in; height: 8.5in;”/>   </div> </macro>

How to hide a body level Field Using Client Script

 function fieldChanged(scriptContext) { // Specify the particular field change condition let subCategoryField = currentRec.getField({             fieldId: ‘custevent_jj_travel_sub_category_list’           });   subCategoryField.isDisplay = false }

How to Hide the files in the custom record without using a scripts

Go to the corresponding field in the custom record. Then Under the Access Subtab, We can set the Access Levels Default Search or Reporting access permission as None. Then under the Roles subtab we can select the particular roles and can assign the permission to them for this field