Creating IF, Invoice and Payment Record From Sales Order

The client needs to create IF, Invoice and Payment Records from sales orders. The sales order details was given in CSV file and Inventory setup was need to do in IF. /**  * @NApiVersion 2.1  * @NScriptType MapReduceScript  */ define([‘N/record’, ‘N/search’,’N/file’,’/SuiteScripts/Jobin and Jismi/RLPL-143 IF_INV_Payment Automation/papaparse.min.js’],     /**  * @param{record} record  * @param{search} search  */… Continue reading Creating IF, Invoice and Payment Record From Sales Order

Function To Set Random Colors To Each Letters In A Word.

function applyRandomColors(text) { var coloredText = ”; for (var i = 0; i < text.length; i++) { var randomColor = ‘rgb(‘ + Math.floor(Math.random() * 256) + ‘,’ + Math.floor(Math.random() * 256) + ‘,’ + Math.floor(Math.random() * 256) + ‘)’; coloredText += ‘<span style=”color: ‘ + randomColor + ‘;”>’ + text[i] + ‘</span>’; } return coloredText;… Continue reading Function To Set Random Colors To Each Letters In A Word.

Approval Process Using User Event Script

Client needs to do an approval process for a custom record. The approval process has been completed using user event script. /** * @NApiVersion 2.1 * @NScriptType UserEventScript */ define([‘N/record’, ‘N/runtime’, ‘N/search’,’N/ui/serverWidget’,’N/error’,’N/config’,’N/email’], /** * @param{record} record * @param{runtime} runtime * @param{search} search */ (record, runtime, search,serverWidget,error,config,email) => { /** * Defines the function definition that… Continue reading Approval Process Using User Event Script

Page loading using a custom button

Need to load a page by clicking a custom button from a record, without using a separate client script to write the function. /** * @NApiVersion 2.1 * @NScriptType UserEventScript */ define([‘N/record’, ‘N/search’,’N/ui/serverWidget’,’N/config’], /** * @param{record} record * @param{search} search */ (record, search,serverWidget,config) => { /** * Defines the function definition that is executed before… Continue reading Page loading using a custom button

Scheduled Script To Delete Address From Employee Record

The client needs to delete all the addresses in the employee record. We have created a scheduled script to delete them without affecting any other fields. /**  * @NApiVersion 2.1  * @NScriptType MapReduceScript  */ define([‘N/record’, ‘N/search’],     /**  * @param{record} record  * @param{search} search  */     (record, search) => {      … Continue reading Scheduled Script To Delete Address From Employee Record