Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
how is "save" defined
I am almost done with this script, but cannot seem to find the function definition of save- can someone help? My goal is this:
Upon clicking "save" on an SO, I want this script to take the total of the SO, add it to the current balance, and if it exceeds the credit limit on the customer form, block the save to error.
Here is what I have:
To be run when ‘save’ is selected
function noCreditKillSave()
{
var creditLimit = nlapiGetFieldvalue('creditlimit');
var balanceAmount = nlapiGetFieldvalue('balance');
var totalAmount = nlapiGetFieldvalue('total');
if( (balanceAmount + totalAmount) >= creditLimit)
{
//need to kill the 'save' process
~angela
Angela Bayliss
Jade Global - SW Florida