This topic contains 1 reply, has 0 voices, and was last updated by chrisatsc 7 years, 9 months ago.

  • Author
    Posts
  • #5592

    chrisatsc

    [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.

  • #5593

    chrisatsc

    And of course I figured it out after posting, but not after spending DAYS on trying to do so.

    Need to set the customform of the itemreceipt prior to submission, even though it’s not a customform. I think I’ve been bitten by this in the past as well. Sigh.

You must be logged in to reply to this topic.