lineItemDetails.sort((a, b) => { let itemNameA = a.item.text.toLowerCase(); let itemNameB = b.item.text.toLowerCase(); return itemNameA.localeCompare(itemNameB, undefined, { numeric: true, sensitivity: ‘base’ }); });
Author: Litha Mukunthan
Function to escape special charecter
/** * Function to escape from special characters in the data * @param textvalue data from PPA account * @returns {*} data after replacing special characters */ const escapeSpecialChar = (textvalue) => { … Continue reading Function to escape special charecter
Creating the preview or download of document in netsuite.
/** * @NApiVersion 2.1 * @NScriptType Suitelet */ /*********** * STERI-187 SteriTek-USA-NS * * STERI-187 : Option to download the file. * * ************************************************************************************** ******** * * Author: Jobin and Jismi IT Services * * Date Created : 29-February-2024 * * Description : This script is used to download the file. * * REVISION HISTORY… Continue reading Creating the preview or download of document in netsuite.
Sorting the result in the saved search
The client would like to set the child waybill number(Which is fetched as a part of integration ) to the carton details record based on the order. This can be accomplished by sorting the saved search results based on the carton ID. /** * Function to fetch the carton internal… Continue reading Sorting the result in the saved search
Advance PDF template to display N/A if the field contains no value
The client would like to print the pdf in such a manner that if a field contains value then it will be printed if all other field have value else we should print it as N/A <td colspan=”4″ style=”border: 1px solid rgb(187, 187, 187);font-size:10.5px;line-height:13px;” vertical-align=”middle”> <#if record.custrecord_vr_outbound2_contact1?has_content || record.custrecord_jj_outbound2_address_text?has_content || record.custrecord_vr_svcord_outbound2_shipcarr?has_content || record.custrecord_vr_svcord_outbound2_shipacct?has_content || record.custrecord_vr_outbound2_contact2?has_content… Continue reading Advance PDF template to display N/A if the field contains no value
Map reduce script to re-sync orders with time out errors
The client would like to sync orders with a time-out error. We identify orders with time-out errors using a custom field in the item fulfillment record. /** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ /************************************************************************************* *********** * * XSEED Education Pte Ltd-IND-NS * * XSEED-534: E-shipz integration * * ************************************************************************************* *********** * * Author: Jobin… Continue reading Map reduce script to re-sync orders with time out errors
PDF template to print the label based on quantity
The client would like to print the item label based on the quantity ordered in the sales order <?xml version=“1.0”?> <!DOCTYPE pdf PUBLIC “-//big.faceless.org//report” “report-1.1.dtd”> <pdf> <pdfset> <head> <link name=“NotoSans” type=“font” subtype=“truetype” src=“${nsfont.NotoSans_Regular}” src-bold=“${nsfont.NotoSans_Bold}” src-italic=“${nsfont.NotoSans_Italic}” src-bolditalic=“${nsfont.NotoSans_BoldItalic}” bytes=“2” /> … Continue reading PDF template to print the label based on quantity
Proposal for consolidated Packing Slip
The client would like to create a consolidated packing slip in NetSuite based on the item fulfillment created through multiple sales orders. Proposal Summary This proposal outlines a comprehensive solution creating consolidated packing slip pdf and consolidated invoice pdf using the data of multiple item fulfillments in NetSuite. MynTahl Corporation aims to streamline its process… Continue reading Proposal for consolidated Packing Slip
Proposal for Automatic Creation of Sales Order for Photography item
Requirement. The client would like to create an internal Sales Order automatically based on a saved search that pulls from an originating Sales Order. The saved search pulls a list of Sales Orders where we have checked that the Photo Item is true on the line. What this will allow us to do is automatically create an internal order… Continue reading Proposal for Automatic Creation of Sales Order for Photography item
Scripting the Sales/Pricing tab in the item record.
The client (BGGN) would like to copy the costing details from the costing subtab to the sales/Pricing subtab in the item record. We have created a user event script that will fetch the costing from the costing subtab and store them in the corresponding sales/Pricing details tab. Initially, we will identify the internal id of… Continue reading Scripting the Sales/Pricing tab in the item record.