Item Receipt

An item receipt transaction records the receipt of returned items from customers. This transaction updates the following information:

The item receipt transaction is available when the Advanced Receiving feature is enabled.

For help working with this record in the UI, see Receiving a Customer Return and Handling Returned Items.

The internal ID of this record is itemreceipt.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The item receipt record is scriptable in both client and server SuiteScript.

Supported Functions

The item receipt record is partially scriptable. It can be updated, deleted, and searched using SuiteScript. It cannot be created or copied.

Usage Notes

The Item Fulfillment/Item Receipt sublist is a list sublist.

Using Landed Cost Fields

When you create a landed cost category, the associated field IDs for the first category are landedcostamount1 and landedcostsource1. If you create a second category, the IDs will be landedcostamount2 and landedcostsource2.

This pattern increments by one with each additional category. For example, the IDs for the next landed cost category will be landedcostamount3 and landedcostsource3, and so on.

Creating Item Receipt Records

You cannot create standalone item receipts using SuiteScript. For example, the following will throw an error:

          var itemReceipt = record.create({

    type: record.Type.ITEM_RECEIPT

}) 

        

To create an item receipt, you must use record.transform(options), which transforms the data from one record type, purchase order, for example, into an item receipt. To create an item receipt, your code would be similar to the following:

          // Transform a record with a specific id to a different record type. 

// For example, from PO to Item Receipt

// Get the object of the transformed record.

      var trecord = record.transform({

        fromType: record.Type.PURCHASE_ORDER,

        fromId: 26,

        toType: record.Type.ITEM_RECEIPT

    });

      qty = trecord.getSublistValue({

        sublistId: 'item',

        fieldId: 'quantity',

        line: 1

    });

    trecord.setSublistValue({

        sublistId: 'item',

        fieldId: 'quantity',

        line: 1,

        value: '2'

    });

      var idl = trecord.save ({

        enableSourceing: true

    });

      email.send({

        author: -5,

        recipient: -5,

        subject: 'Transform Email',

        body: 'Original Qty = '

}); 

        

Related Topics

General Notices