Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Error while entering Inventory Details using Script on Item Receipt.
HI All,
I am trying to create a Item Receipt from PO. While i am entering the Inventory Details on the Sub Record . It gives me error that Enter the Value of Serial/Lot Number which i am already adding in Script.
Below in my code.
var NBRReceipt = nlapiTransformRecord('purchaseorder', '4001', 'itemreceipt', {recordmode: 'dynamic'});
for(var i=1;i<=NBRReceipt.getLineItemCount('item');i++){
NBRReceipt.setLineItemValue('item','itemreceive', i, 'F');
}
var InventoryDetail = ['BP1029t63','BP1029t64'];
for(var i=1;i<=NBRReceipt.getLineItemCount('item');i++){
if(NBRReceipt.getLineItemText('item', 'item', i)=='Beneficiary - Global'){
NBRReceipt.selectLineItem('item', i);