Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Suitelet Script Question
I'm trying to write a suitelet for the qty of pcs between two different date ranges. My saved search results pull the information just fine. The values being pulled out in the script are different.
Here is the search created in the script:
function getWebOrdersSearch() {
var getWebOrders = search.create({
type: "salesorder",
settings:[{"name":"consolidationtype","value":"ACCTTYPE"}],
filters:
[
["type","anyof","SalesOrd"],
"AND",
["mainline","is","F"],
"AND",
["formulanumeric: case when {otherrefnum} like '%web%' or {otherrefnum} like '%Web%' or {otherrefnum} like '%WEB%' then 1 else 0 end","equalto","1"],
"AND",
["status","noneof","SalesOrd:C"],
"AND",
["shipping","is","F"],
"AND",
["taxline","is","F"], 0