Order Type

The order type is a category that associates attributes to sales and transfer orders. In NetSuite WMS, you can create an accounting list of multiple order types and associate each outbound sales or transfer order with one order type.

The order type record is available when the Warehouse Management feature is enabled. For help working with this record in the UI, see Creating Order Types.

The internal ID for this record is ordertype.

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 order type record is scriptable in both client and server SuiteScript.

Supported Functions

The order type record is fully scriptable – it can be created, copied, updated, deleted, and searched using SuiteScript.

Code Samples

The following sample shows how to create and edit an order type record using SuiteScript 2.x:

            require(["N/record"], function (record) {
    function createOrderType() {
        var orderType = record.create({type: record.Type.ORDER_TYPE, isDynamic: true});
        orderType.setValue({fieldId: "name", value: "Rush"});
        orderType.setValue({fieldId: "description", value: "To be expedited within 24 hours"});

        orderType.save();
    }

    function editOrderType() {
        var orderType = record.load({type: record.Type.ORDER_TYPE, id: 3, isDynamic: true});
        orderType.setValue({fieldId: "name", value: "Low priority"});
        orderType.setValue({fieldId: "description", value: "To be expedited when all higher priority items have been shipped"});

        orderType.save();
    }

    createOrderType();
    // editOrderType();
}); 

          

Related Topics

General Notices