Function of replace data in email body

function getHtmlBody(Template,htmlbody, replaceData) { try { let html = htmlbody; if (Template === sevenDaysTemplate) { html = html.replace(‘#close’, replaceData.closingdate); html=html.replace(‘#orders’,replaceData.orders) } else if (Template === fourteenDaysTemplate) { html=html.replace(‘#orders’,replaceData.orders); } else if(Template === fifteenDaysTemplate){ html=html.replace(‘#orders’,replaceData.orders); } return html } catch (e) { log.debug({ title: e.name, details: e }); log.error({ title: e.name, details: e }); }}

Proposal For Auto Generated Invoice Enabling for All Subsidiaries

Proposal summary  This proposal describes the AMVOP would like to build an auto-invoicing process enabled for all subsidiaries with multiple users and roles and restrict the invoice view permission for a selected user and role in the system.  Requirement  The auto-invoicing process is enabled for all subsidiaries with multiple users and roles. When the selected… Continue reading Proposal For Auto Generated Invoice Enabling for All Subsidiaries

Change Company Logo Size for Transaction Form PDF LayoutS

Solution: Navigate to Setup > Company > Printing & fax (under Preferences Section) Click Printing subtab Locate PDFs Section Locate Logo Scaling Factor Change value as necessary Click Save Note: The smaller the value, the smaller the logo. You can reload the Printed Transaction to see the logo size change Real-Time.

Change the Base Unit in Unit of Measure

If Unit of Measure has not been used, we can still change the Base Unit of the Unit of Measure.    1. Unmark the current Base Unit2. Check the new Base Unit Note: If Unit of Measure has already been used, we cannot change the Base Unit of the Unit of Measure.

Display Component “Used in Build” Quantity in Work Order Saved Search

The Used in Build field in Work Order is currently not available in Transaction Saved Search. In Work Order, this shows the quantity of components used. Instead, you can use the Quantity Fulfilled/Received field. To display component’s Used in Build quantity of Work Order in Transaction Saved Search. Navigate to Lists > Search > Saved Searches > New  Click Transaction Search Title: Enter Title  Filter: Select Type Note:  For every required filter use the dropdown menu to select it. 5. Description: SelectWork Order… Continue reading Display Component “Used in Build” Quantity in Work Order Saved Search

Phantom Assemblies

A phantom assembly is typically a non-stocked assembly that groups the components needed to produce a subassembly. For example, compare a phantom assembly to folders on a computer. The folder represents the phantom and the individual files are the components. They are called phantoms because they are not counted as inventory items, but are created… Continue reading Phantom Assemblies

Add Dynamic Tracking Links for Unsupported Carriers onto Transaction Records

NetSuite natively supports direct shipping integration with but UPS and FedEx, which allows users to print shipping labels for a wide variety of service levels for each carrier from within the NetSuite UI.  To expand upon those capabilities, NetSuite also supports the integration of third-parting shipping platforms that connect to hundreds of other carriers, such… Continue reading Add Dynamic Tracking Links for Unsupported Carriers onto Transaction Records

Function to create a saved search for the Pending TimeSheet

function timesheetSearch(project_Search_Result) { try{ var filterArr = []; if(project_Search_Result.length>0){ for(var i=0;i<project_Search_Result.length;i++){ filterArr.push(project_Search_Result[i].prjId) } } var timesheetSearchObj = search.create({ type: “timesheet”, filters: [ [“custrecord_jj_supervisor_approval_status”,”anyof”,”1″], “AND”, [“totalhours”,”greaterthan”,”0.0″], “AND”, [“timesheetdate”,”onorafter”,”1/1/2020″], “AND”, [“timebill.customer”,”anyof”,filterArr] ], columns: [ search.createColumn({ name: “internalid”, summary: “GROUP”, label: “Internal ID” }), search.createColumn({ name: “employee”, summary: “GROUP”, label: “Employee” }), search.createColumn({ name: “custrecord_jj_supervisor_approval_status”, summary: “GROUP”, label:… Continue reading Function to create a saved search for the Pending TimeSheet