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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Please configure the inventory detail for this line when creating an invoice using SuiteScript
Hi, I am trying to create an invoice where the item is an inventory item that uses a bin. I checked and I have enough inventory for this item. I am able to commit the line for the inventory details but I get the error message when the invoice is committed. I actually followed the script in the support page. I have no idea what is missing. I would appreciate any help. Thank you in advance!
Here's the script I am using for my testing. This is exactly (except the ids) in the support page.
/**
* @NApiVersion 2.1
* @NScriptType ScheduledScript
*/
define(['N/record', 'N/log'], (record, log) => {
0