[SOLVED – Need to set customform of itemreceipt]
Hope someone can help me with this before the dent in my forehead gets any deeper.
I am trying to transform a Purchase Order to an Item Receipt, with the Items using Advanced Bin Management via a RESTlet. No matter what I try, on submission the transformed record returns the extremely helpful error that I am missing an “id”.
My SuiteScript code for this is:
Code:
function itemReceipt(dataIn) {
/*
* Have to look up items by itemname.
*
* @param {Array} items List of items received from the cache
* @param {String} itemname The itemname from the itemreceipt’s item list.
* @return {Object|Null} The item object from the cache, or null if not found.
*/
function findItemInInput(items, itemname) {
for (var i = 0; i This is a cached copy. Click here to see the original post.