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.
Script to check if item quantity is less than 5, alert
I have a working script to check
1. Item available quantity is <=5,
2. popup a message " Available quantity is running low, please reorder".
However, the behaviour is not consistent.
1. When first item added is = 0, it gives the default netsuite message saying that item is .. 0 in back order, 0 available - which is fine.
2. If first item added is >= 5 but not 0, it gives my message saying"Available quantity is running low..."
Then, if my script was triggered first, it will never display the Netsuite message when item is less than or equal 0 again and not let user enter anything else or save the record.
0