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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Scripting assembly builds to only withdraw inventory when approved
I'm trying to write a script that will prevent finished goods from being withdrawn from inventory if the assembly build is awaiting approval. This is the first script I've ever done and first time ever using Javascript so I apologize if what I have so far makes no sense (and if I sound dumb). The script checks if the record is an assembly build that is being created or edited then creates a temporary field, "quantity pending". When saved, if approval status is "awaiting approval", the script assigns the value of quantity pending to the value in Quantity to Build,
0