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.
Can't Transform Sales Order to Cash Sales
Hi Friends,
I have a problem when i am transforming the SO to a Cash Sales. I am using following code to do that in my Scheduled Script.
var salesOrderrecord = nlapiLoadRecord('salesorder',id);
var fulfillRecord = nlapiTransformRecord('salesorder', id, 'itemfulfillment');
nlapiSubmitRecord( fulfillRecord );
var billType = searchresults.getValue('terms') != null ? 'invoice' : 'cashsale';
var billRecord = nlapiTransformRecord('salesorder', id, billType);
nlapiSubmitRecord( billRecord );
nlapiLogExecution("DEBUG", "Sales order transformed to cashsale","SalesOrderID = "+id);
I got the above style from one of the samples posted on the help site.
Following is the error that i get in the log
[I]"Code: INVALID_INITIALIZE_REF Details: You have an invalid sales order XXXX or the order is already closed."