Format numbers to currency strings

Description Create format.CurrencyFormatter object to format numbers into currency strings. Returns –> Object Supported Script Types –> Client and server scripts Governance –> 10 units Module –> N/format/i18n Module Parameters options.currency (required/optional) Code of the currency that is used by formatter. options.locale (required/optional) Code of the locale that is used by formatter. Warning : These parameters are… Continue reading Format numbers to currency strings

Steps to Learn Blender Scripting:

Understand Blender’s Python API: Familiarize yourself with Blender’s Python API (Application Programming Interface). The API is the set of tools and functions that allow you to interact with Blender through scripting. The official Blender API documentation (https://docs.blender.org/api/current/) is a valuable resource. Explore the Blender Text Editor: Open Blender and go to the “Scripting” workspace. Blender… Continue reading Steps to Learn Blender Scripting:

ChatGPT for NetSuite – Part 1

ChatGPT is an AI language model developed by OpenAI. It is based on the GPT (Generative Pre-trained Transformer) architecture, specifically the GPT-3.5 model, which was released in 2021.ChatGPT has been trained on a massive amount of text data and can generate human-like responses to a wide range of natural language prompts. It can be used… Continue reading ChatGPT for NetSuite – Part 1

Script For Sending Payment Reminder Emails (Map/Reduce)

The requirement is to send a payment reminder email if the customer is not done payment after 1 hour of sales order creation from the website. We need to consider the following conditions for sending the payment reminder email: Condition For sending Email:  The following conditions need to be true.  The payment confirmation checkbox(a custom… Continue reading Script For Sending Payment Reminder Emails (Map/Reduce)

Setting Field Values Using the Date JavaScript Object

Scenario A developer uses the JavaScript Object new Date() when setting date field values via SuiteScript and is uncertain of the timezone being used by the API. Solution The date and time that is set to fields accepting new Date() varies depending on the current timezone set on the local computer it is running on. So in order to… Continue reading Setting Field Values Using the Date JavaScript Object

How to resolve errors while deploying Map/reduce script

Scenario:While creating a new script record in Netsuite and deploying the script, there may b a “Failed” message displayed on the status page. One major reason for this will be the file name of the script file if the filename of the script file is large or any special characters are used this may lead… Continue reading How to resolve errors while deploying Map/reduce script

Adding Loading symbol while processing

Scenario: When some process is processing if you need to show any kind of loading symbol for representing the process may take some time. For this you need to add a loading symbol on the page Solution: For this you need to add a jQuery section with a HTML code block. The HTML code block… Continue reading Adding Loading symbol while processing