Create pop up Window at sales order entry

Requirement Create a pop up window on sales order Entry that says “Customer with Over Due Balance” if the customer has overdue balance no empty and greater than 0 and if the days overdue are greater than 0. The window should not prevent to enter the sales order, only informative. Solution The The pop up… Continue reading Create pop up Window at sales order entry

Restrict Items on transactions using Customer Center Role

Create an Item Saved Search that will show the specific Items Use a standard field or create a custom field in Item record Select the standard or custom field created as a filter Public: Enter Checkmark 2. Customize the transaction forms: Navigate to Customization > Forms > Transaction Forms. Locate the preferred external transaction forms. Edit the form and rename it. Navigate to… Continue reading Restrict Items on transactions using Customer Center Role

Proposal for the Creation of Assembly item and BOM in NetSuite through Restlet

Creation of Assembly item and BOM in NetSuite through Restlet  Proposal summary  Creates and view Assembly item and Bill of Materials in NetSuite through Restlet call.  Requirement   I need to have a restlet service created that would allow me to have an assembly item created And BOM created. And also restlets that would allow… Continue reading Proposal for the Creation of Assembly item and BOM in NetSuite through Restlet

Setting a Date value in Date type custom field in NetSuite and change the timezone

When we fetch a date value format from a custom field (Type is date) we get the format as “2022-07-13T07:00:00.000Z” ISO format. we have to convert this form into M/D/YYYY format. For that use this syntax below: Module: N/format var dateNeededByNew = rec.getValue({field:date}); // 2022-07-13T07:00:00.000Zvar formattedDateString = format.format({value : dateNeededByNew,type:format.Type.DATE //If we need time also… Continue reading Setting a Date value in Date type custom field in NetSuite and change the timezone

The Intersection and difference between two arrays

There are cases when we need to find common elements from two arrays; in such cases we can use the formula let intersection = arr1.filter(x => arr2.includes(x)); taking common elements from array 1 and array 2 If we want to take all elements from array 1 that are not in array2 then you can use… Continue reading The Intersection and difference between two arrays

Text swatches for Product Attribute options in Magento

In Magento  Text swatches and Visual swatches  works with select-type attributes. In normal case the input type is drop down list. to set the options as text swatches we need to set the field value “frontend_input” : “swatch_text” for(text swatches) and “frontend_input” : “swatch_visual” (for visual swatches) ‘attribute’: { ‘is_wysiwyg_enabled’: false, ‘is_html_allowed_on_front’: false, ‘used_for_sort_by’: false,… Continue reading Text swatches for Product Attribute options in Magento

Convert Base 64 encoded image data to a JPEG and encoded PDF file in to the File cabinet.

NetSuite does convert Base64 image data to a JPEG file in the file cabinet automatically. I have tried different methods to decode the base 64 encoded image data. Failed to save the image data to a folder created in file cabinet. solution: Use N/encode module, in file.create() use “file.Encoding.BASE_64” for encoding type. Instead of trying… Continue reading Convert Base 64 encoded image data to a JPEG and encoded PDF file in to the File cabinet.