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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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