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.
Capturing Unit Price for invoice Item
How do I capture unit price from invoice´s item sublist?
is this field scriptable?
I need to capture it via server side script
I´m trying something like that:
var rec = nlapiLoadRecord('invoice', invoiceID)
for(var i=1;i<=rec.getLineItemCount('item');i++){
var itemDescription = rec.getLineItemValue('item','description',i);
var itemQty = rec.getLineItemValue('item','quantity',i);
var itemUnitPrice = rec.getLineItemValue('item','????',i);
}
Any suggestion????
Thank´s
0