Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Custom transaction column on invoice itemcost/expcost tabs not staying stored
I'm trying to add a custom transaction column to our invoices to store values on the expcost and itemcost tabs.
I've created the column and applied it to Sale Item.
When I edit an invoice the column is not displayed on the expcost/itemcost tabs. This is actually OK as I don't want to see it. It does display on the main item tab.
In a before submit user event script when the event type is either create or edit I set the value using:
nlapiSetCurrentLineItemValue('expcost', 'custcol_syn_sales_expense_category', expenseCategoryId);
When I'm returned to the invoice in view mode the custom column is displayed and the value is populated.
0