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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Inventory Detail Error in Transfer Order TransformRecord
Trying to code a Suitelet to fulfill a TO, keep getting the error "The total inventory detail quantity must be 1." Code is below. Any ideas? I've gone in so many circles trying to get this to work....must be missing something very minute
var fulfillment_record = nlapiTransformRecord('transferorder', 534568, 'itemfulfillment', {recordmode: 'dynamic'}); fulfillment_record.selectLineItem('item', 1); fulfillment_record.setCurrentLineItemValue('item', 'quantity', 1); fulfillment_record.setCurrentLineItemValue('item', 'itemreceive', 'T'); var subrecord = fulfillment_record.createCurrentLineItemSubrecord( 'item', 'inventorydetail'); subrecord.selectNewLineItem('inventoryassignment') ; subrecord.setCurrentLineItemValue('inventoryassignment', 'quantity', 1); subrecord.setCurrentLineItemValue('inventoryassignment', 'binnumber', 134); subrecord.commitLineItem('inventoryassignment'); subrecord.commit(); fulfillment_record.commitLineItem('item'); var id = nlapiSubmitRecord(fulfillment_record, false, true); 0