Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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);