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.
Creating a new Manufacturing Routing
Hi,
Need some help with a script I am doing. I am trying to do a setup some defaults when a new Manufacturing Routing is created. Having trouble setting the 'manufacturingcosttemplate' and the 'manufacturingworkcenter' fields on the 'routingstep' sublist. Whether I use the internal Id or the text, it just doesn't work. Sample code:
nlapiSelectNewLineItem('routingstep');
nlapiSetCurrentLineItemValue('routingstep', 'operationsequence', q + 1);
nlapiSetCurrentLineItemValue('routingstep', 'manufacturingcosttemplate', cost_template_id);
nlapiSetCurrentLineItemValue('routingstep', 'manufacturingworkcenter', work_centre_id);
nlapiSetCurrentLineItemValue('routingstep', 'operationname', work_centre_name);
nlapiSetCurrentLineItemValue('routingstep', 'runrate', 1);
nlapiSetCurrentLineItemValue('routingstep', 'setuptime', 1);
window.alert('line done');
nlapiCommitLineItem('routingstep');
Line 3 and 4 never work and hence the line does not get committed. I even tried hardcoding the internal ID and the text but none of them work.