Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.