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.
Transforming a Return Authorization -> Item Receipt
Perhaps I am going about this the wrong way - but what I would like to do is automatically generate the Item Receipt record when a particular user saves a new Return Authorization as they would only do this when customer/item is present so it is un-needed clicking to go through the process of manually clicking "Receive", ticking the boxes for the items, and then Save.
The code fired on a Return Authorization submit is:
var returnauthId = nlapiGetRecordId();
var recordType = nlapiGetRecordType();
if ((type == 'create') && (recordType == 'returnauthorization')) {
toRecord = 'itemreceipt';
itemreceipt = nlapiTransformRecord(recordType, returnauthId, toRecord);
itemreceipt.setFieldValue('landedcostmethod', 'WEIGHT');
itemreceipt.setFieldValue('landedcostsource1', 'MANUAL');