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.
Inventory Transfer of serialized items
Within a Suitelet I need to create an inventory transfer for serialized items. I am able to create simple inventory transfers for inventory items, but I've been wrestling with the detail subrecord specification without success.
This code produces - An unexpected SuiteScript error has occurred.
var xfer = nlapiCreateRecord('inventorytransfer');
xfer.setFieldValue('location', from_location);
xfer.setFieldValue('transferlocation', to_location);
xfer.selectNewLineItem('inventory');
xfer.setCurrentLineItemValue('inventory', 'item', '10');
xfer.setCurrentLineItemValue('inventory', 'adjustqtyby', '1.0');
var detailSubRecord = xfer.createCurrentLineItemSubrecord('inventory', 'inventorydetail');
detailSubRecord.setCurrentLineItemValue('inventoryassignment', 'issueinventorynumber', '12345678');
detailSubRecord.commitLineItem('inventoryassignment');
detailSubRecord.commit();
xfer.commitLineItem('inventory');
var id = nlapiSubmitRecord(xfer);
Any assistance would be appreciated. Thanks.