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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Multiple if statements in validateLine function
I am trying to create a script to validate line items based on the selection of a custom field on a sales order record. So I need to script to run through each selection item and check to see if the items noted in the script have been added to the order. If so, I wish to present a message. If item is not on order then I wish to move on to the next if statement. During testing I am finding that both alerts are being displayed. What am I missing? Here is my script:
function validateLine_rec() {
var stRecord = nlapiGetRecordType();