Copy a value to the item column

/** * @NApiVersion 2.1 * @NScriptType ClientScript * @NModuleScope SameAccount */ define([‘N/search’], (search) => { function fieldChanged (context) { try { const recInvoice = context.currentRecord; const stCurrField = context.fieldId; const stCurrSublist = context.sublistId; // Get UPC code of billing item if (stCurrSublist === ‘item’ && stCurrField === ‘custcol_billingitem’) { const billingitem = recInvoice.getCurrentSublistText({ sublistId: ‘item’,… Continue reading Copy a value to the item column