Netsuite Handle Changed Items - netsuite

I wrote SuiteScript attch it to event "submit after', Apply it to Customer and it works fine, when i create or edit customer. Now I want attach this script to Item, another words when new Item create or edit. What I need to choose from "Applies To" for that? (http://joxi.ru/uHTeUhjKTJCYBexbX8Y)

Short Answer
you have to select all the different item types individually (e.g. Serialized Inventory Item, Sales Tax Item etc)
Long Answer
Transaction and Items are not actual record types in Netsuite. Items is just an abstraction for the combination of different item types which is not available at every customization level. For a complete list of item types see
https://system.netsuite.com/app/common/item/item.nl
https://system.na1.netsuite.com/app/common/item/item.nl

Related

How to add a column to the Sub record inventory detail?

How to add a column to the Sub record inventory detail?
just like expiration date on inventory number subrecord on Item Receipt, can we have a custom field for manufacturing date in inventory number subrecord. Is there any feature need to be enabled? Does NetSuite have any functionality of Production/Manufacturing date? or any way to create a custom field in inventory number subrecord that is visible in IR subrecord?
In Netsuite go to
Customization -> Lists, Records, Fields -> Item Number Fields
If you have a production run you either have lot numbered or serialized inventory. You can make the field applicable to all Lot Numbered or all Serialized or to just specific skus.
Note that the items need to have been created as lot numbered or serialized items. If the items you want to use were not created as such then you’ll need to replace them with new items. If you want to use the same skus for the new items you’ll need to rename the original items.

sorting list of items with specific field on sales order item sublist NetSuite

I like to sort the list of items in the dropdown in the standard NetSuite sublist item. Let's say items are sorted with the name when clicked on >> to open the dropdown list.
Is this possible to sort this list with any other fields, maybe a custom field on items record. let's say I add a custom field on the item record (every item), which is some numbers.
displaying that list with the order by that field.
I have seen a way around to create a custom sublist of my own requirement and then hide the standard and show the custom on a specific record by customizing the form.
I had a similar issue once, I did the following:
You can create a new body field or sublist field based on your business using userevent script(before load).
Create a search with the required order(you can do any operation to prepare your data) after that you filled the result manually to the new custom field.
Whenever the user selects a value in the custom field you set the original one to be the same as the custom one. For this one, you will need a client script.
Note: you can show your custom field and hide or disable the original field only not the whole list since the client script will be responsible to set the value to it. using this approach will not require you to add or edit any of your records which will be helpful if you have a complex process and a lot of dependencies. This approach worked for my issue I hope to be helpful to you too.

Adding list of products to a non sales order

Sales-Orders are a built in record type. I am trying to make a custom record type that has a list of items similar to that of a sales-order. Without having to create much custom HTML/JS code is there a way to add this functionality to a custom record type?
I've looked into Parent-Child relationships between records and that looks promising but requires a fair bit of learning on my end and before I invest that time I'd like to know if that is the best way to do it.
There are a couple of ways you can achieve this depending on whether you want sales order like extra fields associated with an item line.
The simplest way would be to include a multi-select custom field referencing item on your custom record. This will give you an item selection box and you can associate items with the custom record.
If that's sufficient then do that and you're good to go.
However if you want details associated with each item (like quantity) you'd need to create a custom line record as well as your custom transaction record.
The line record would have the original custom record as a parent record (custom field type List/Record referencing the parent record and check the "Is Parent" checkbox on the field definition page.
The line record would also need a custom list/record field that references items.
Standard UI forms will now let you add custom line records to your parent record and let you select items and add whatever extra fields you need at the line level.
All configuration; no code.
When you look at the custom parent records though you won't see your custom lines right away because they are under the 'custom tab' you can edit the custom parent record's forms and move the custom sublist to the top of the form's sublists so when you open a custom parent record the associated child line records will be on the first tab.

Netsuite, Filtering the Items allowed to sell based on a customer classification

I am wondering if it is possible in NetSuite to filter items available to sell based on a customer.
The requirement is that the company restricts selling certain items to some selected customers. Just wanted to know if this is possible in NetSuite.
I am aware that it is possible in sales order form to have an 'Item saved search' as the filtering criteria. But this does not allow filtering items based on selected customer fields. Seems 'Item saved search' that is assigned for the form can only use static fields or some variables from the 'Item work flow'.
Other way I tried is by restricting the 'Custom' price level on the sales order form. This way I am able stop selling anything not assigned to the customer price level. But I cannot stop those items being listed in the drop-down and search list.
Really appreciate any help on this.
You can use clientscript with validateLine function
Create script parameter with item list record type and select item which you want to restrict.
Within validateLine function restrict item which is selected within a script parameter record.
I was successful in filtering class based on a particular department and the following approach was followed:
var selectedCustom = 'T';
var v_form = type + '_form';
var formCustom = document.forms[v_form];
var fldCustom = getFormElement(formCustom, fldnamCustom.toLowerCase());
Using the above approach the following function was able to filter the list of values
addSelectOption(document, ldCustom, v_class, v_class_id, selectedCustom);

On which context inventory gets changed in Netsuite

I have created a custom checkbox and I have to mark it to true whenever any thing is changed on the record. My problem is I do not have to use lastmodified date because lastmodified is not working as all the items are coming in search. Whenever an item is shipped, it's inventory is changed but i would like to know on which context it changes. It is possible to do with workflow. How?
Inventory change is via different record types in NetSuite, and will not be via item.
I think you will need to write User Event Script or workflow on following record types to detect all Inventory changes:
1) Item Fulfillment
2) Item Receipt
3) Item Transfer
4) Inventory Adjustment
Apart from these there are other mechanism to make an impact on inventory, I am not sure if NetSuite allows user event script or workflows on these:
1) Inventory worksheet
2) Physical Count
For the case of Item being shipped from a Sales Order an Item Fulfillment is created, so, you can deploye your workdlow or user event on Item Fulfillment in that case.
Edit: Transfer Order isn't applicable as #bknights suggested. Inventory alterations would be actually made by Item Fulfillment/Receipt records in case of Transfer Orders.

Resources