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