Solution for setting Adjustment Period in Posting Period of Journal Entry.

When creating a Journal Entry, if we wish to select the adjustment period in the Posting Period, the selected adjustment period will not be set in the Posting Period after saving, even if the Journal Entry is in Pending Approval. As per NetSuite standards, the adjustment period can be set in the Posting Period only… Continue reading Solution for setting Adjustment Period in Posting Period of Journal Entry.

Create Automatic item fulfillment from Sales Order for a specific item.

Create item fulfillment from sales order for the item mb000001. Whenever this item is added in sales order, item fulfillment record needs to create for that item in shipped status. define([‘N/record’, ‘N/search’],  /**   * @param{record} record   * @param{search} search   */   (record, search) => {     /**      * The function to create item fulfillment from slaes order… Continue reading Create Automatic item fulfillment from Sales Order for a specific item.

To resolve an error of “INSUFFICIENT_PERMISSION” in Vendor Bill Approval.

In vendor bill Approval process, an error has occured. Error:UNABLE_TO_SAVE_THE_TRANSACTION_DUE_TO_AN_ERROR_BEING_REPORTED_BY_THE_TAX_CALCULATION_ENGINE_1 Details: Unable to save the transaction due to an error being reported by the tax calculation engine: Tax Calculation Plugin error due to a server-side SuiteScript exception: {“type”:”error.SuiteScriptError”,”name”:”INSUFFICIENT_PERMISSION”,”message”:”You do not have permission to perform this operation.”,”id”:””,”stack”:[“submit(N/task)”,”<anonymous>(/SuiteBundles/Bundle 400562/com.netsuite.indialocalizationengine/src/comp/te/in_tax_engine_2.js:268)”,”<anonymous>(/SuiteBundles/Bundle 400562/com.netsuite.indialocalizationengine/src/comp/te/in_tax_engine_2.js:252)”,”<anonymous>(/SuiteBundles/Bundle 400562/com.netsuite.indialocalizationengine/src/comp/te/in_tax_engine_2.js:46)”],”cause”:{“type”:”internal error”,”code”:”INSUFFICIENT_PERMISSION”,”details”:”You do not have permission to… Continue reading To resolve an error of “INSUFFICIENT_PERMISSION” in Vendor Bill Approval.

Function to open the popup window for entering the required lot number and quantity for inventory detail..

From the Suitelet page 1, upon clicking the Inventory Detail will open a popup window by using client script. Function used in client script is added below. function showPopupWindow(recValue) {       try {         let locationId = recValue.getValue({           fieldId: ‘custpage_location’         });         let itemId = recValue.getCurrentSublistValue({           fieldId: ‘custpage_item’,           sublistId: ‘item_sublist’         });         let itemName = recValue.getCurrentSublistText({           fieldId: ‘custpage_item’,           sublistId:… Continue reading Function to open the popup window for entering the required lot number and quantity for inventory detail..

Use of window.opener in suitelet page.

The values from the child suitelet can be set to the parent suitelet using window.opener. let CS_SCRIPT_PATH = ‘/SuiteScripts/Jobin and Jismi/Credit Memo Vendor Portal MYNE-503/jj_cs_bill_credit_vendor_portal_myne503.js’; const onRequest = (scriptContext) => {      try { if (scriptContext.request.method == ‘GET’) {          let itemName, itemQuantity, itemLocation, itemId;          if (scriptContext.request.parameters.item) {            itemName = scriptContext.request.parameters.item;          }          if (scriptContext.request.parameters.quantity) {            itemQuantity =… Continue reading Use of window.opener in suitelet page.

Sending Confirmation Email to Customer from Sales Order Record.

User Event Script for adding button in Sales Order based on certain condition. (record, search, serverWidget, url) => {     /**      * Defines the function to create a search for purchase orders based on an array of internal IDs.      * @param {Array} createPOArray – Array of internal IDs of purchase orders      * @returns {Array} – Array… Continue reading Sending Confirmation Email to Customer from Sales Order Record.

Date field validation in suitelet page.

By using this function the date from today onwards will be accepted in the date filed /**      * Validation function to be executed when field is changed.      * @param {Object} scriptContext      * @param {Record} scriptContext.currentRecord – Current form record      * @param {string} scriptContext.sublistId – Sublist name      * @param {string} scriptContext.fieldId – Field name      * @param… Continue reading Date field validation in suitelet page.

Facing issue in populating related values of selected item in the itemsublist of a suitelet page.

In the vendor portal, when selecting an item, it is necessary to populate the rate of that item from the item record. Additionally, upon clicking the ‘Setup Inventory’ button below the inventory detail field, a pop-up should appear. Within this pop-up window, all lots associated with the selected item and location should be listed below… Continue reading Facing issue in populating related values of selected item in the itemsublist of a suitelet page.

Solution for making the Expiry Date field as a mandatory.

As we cannot set the field ‘Expiration Date’ mandatory via the NetSuite UI, we can use a User Event script as an alternative. This script can be deployed in two records, such as item receipt and inventory adjustment. The following script is designed to prompt the user prior to saving a record if the ‘Expiration… Continue reading Solution for making the Expiry Date field as a mandatory.