I have a saved search that fetches an item that s ...
# suitescript
a
I have a saved search that fetches an item that s updated after a specific time . but i get duplicate results for a single item.
b
looks like you added a column which uses data from a join (location available)
you should get one search result for each inventory location you chose in your location filter
a
i want result for only one location
b
is your location filter one location?
a
yes
b
what are your other columns?
a
results or filters ?
b
criteria contain filters, results contain columns
a
message has been deleted
here are the columns
i added another column named Location and that shows that there are two results for same location
b
inventory location should be your filter
not location
same thing for your columm
a
It shows plenty of other fields
b
for your purposes, you can use the filter and column literally named Inventory Location
👍 2
its not in the join section
a
Problem solved .. Thanks for help
b
out of curiosity, why do you have a custom last updated
a
I want to have a field that saves the date and time when an item is updated
b
the difference to the last modified being?
a
Last modified field does the same ?
b
yes, it has the date/time the record was last modified
a
I am a beginner actually .. The developer previously working on netsuite used this field in many scripts .. I am just continuing that
b
similarly, the last quantity available change has the date/time the quantity available changed
understand the difference between quantity available and quantity on hand before using that column
a
sure sir ..
b
a minor warning: kits dont have inventory numbers stored in their columns
and in general beware unit types when doing quantity, the quantity shown may not be in the units you want
a
Will the saved search work for kit as well
I want it to work against both kit and inventory items
b
not as is
and im not sure if you can do it if your inventory items use units type
for kits, you would need to setup filters and columns using the member item join to calculate inventory
a
I have noticed that the filter inventory location doesnt work in case of "Kit"
b
As i said kits dont have inventory
Its member items do
a
ok .. I may have to change my script then to use another saved search specifically for kit
b
ask on https://netsuiteprofessionals.com/ if you need help making that search
👍 1
a
sure, will do that..