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
Author: Athul Krishna
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
Updating Entity Name In Journal Entry Line Level
Client needs to update missing entity names in specific lines in the journal entry record. The details was given in CSV file. We have updated using a scheduled script,
Map/Reduce Script to Update Landed Cost In IR record using CSV Custom Import
The client needs to update the landed cost template at line level in IR record using a CSV file. We have created a map/reduce script to update the values.
Scheduled script to update custom price field in Item Record
The client needs to update a custom price field in the item record based on some values in other fields.
Update Checkbox Value In Item Record
The client needs to update a value in a checkbox in Item record.
Deletion of Cash Sale Records
Client needs to delete the cash sale records