NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    Ship Item base class

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _id accchange account accounthandling costbasis countries defaultValues? description displayname doifarrangement doiftotal doiftotalamt doiftotaloperator doifweight doifweightamt doifweightoperator doifweightunit edition excludecountries excludesites externalid fedexdiscountrate fedexonerate fedexservicecode freeifordertotalisoveramount handlingaspercentageoftotal handlingbyweightamount handlingbyweightperquantity handlingbyweightperunit handlingcost handlingflatrateamount handlingperitemamount handlingtablechargeby handlingtableuom handlingtaxcode hasmaximumshippingcost hasminimumshippingcost integratedlabelsarrangement integrationservicecode invt_dispname isfreeifordertotalisover ishandlingbyweightbracketed ishandlingtaxable isinactive isonline isshippingbyweightbracketed istaxable itemid itemtype labelplugin labelpluginselect labelreg labelregselect labelservice labelservicegroup labelservicegroupselect labelserviceselect labeltype maximumshippingcost minimumshippingcost needsallfreeshippingitems nsrecord omitpackaging pluginlabelsarrangement pluginratearrangement ratingplugin ratingpluginselect ratingreg ratingregselect ratingservice ratingservicegroup ratingservicegroupselect ratingserviceselect restrictionarrangement returnlabelreg returnlabelregselect returnlabelservice returnlabelserviceselect returnservicecode returnsintegrated shipitemcurrency shipperintegrated shippingaspercentageoftotal shippingbyweightamount shippingbyweightperquantity shippingbyweightperunit shippingcarrier shippingflatrateamount shippingperitemamount shippingtablechargeby shippingtableuom shippingtaxcode site states subsidiary tabtext taxschedule taxschedulehandling upsdiscountrate upssavername upsservicecode uspsdiscountrate uspsservicecode

    Accessors

    Methods

    Constructors

    • Loads an existing record with the given internal id

      Parameters

      • id: NonNullable<string | number>

        record internal id to load

      • OptionalisDynamic: boolean

        set true if you want to load the record in dynamic mode

      Returns ShipItem

      // load customer with internal id 123
      const c = new Customer(123)
    • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

      Parameters

      • rec: NonNullable<ClientCurrentRecord | Record>

        an existing netsuite record

      Returns ShipItem

      // assume `ctx` is the _context_ object passed to a `beforeSubmit()` entrypoint.
      // results in an NFT representation of the 'new record'
      const customer = new Customer(ctx.newRecord)
    • creates a new record

      Parameters

      • Optionalunused: Nullable<string | number>

        either null or leave this parameter out entirely

      • OptionalisDynamic: boolean

        true if you want to create the record in dynamic mode, otherwise uses standard mode.

      • Optionaldefaultvalues: object

        optional defaultvalues object - specific to certain records that allow initializing a new record.

      Returns ShipItem

      // start a new customer record
      const c = new Customer()

      // start a new customer record in dynamic mode
      const c = new Customer(null, true)

    Properties

    _id: number

    Netsuite internal id of this record

    accchange: boolean
    account: number
    accounthandling: number
    costbasis: string
    countries: number
    defaultValues?: object
    description: string
    displayname: string
    doifarrangement: string
    doiftotal: boolean
    doiftotalamt: number
    doiftotaloperator: number
    doifweight: boolean
    doifweightamt: number
    doifweightoperator: number
    doifweightunit: number
    edition: string
    excludecountries: boolean
    excludesites: boolean
    externalid: string
    fedexdiscountrate: number
    fedexonerate: boolean
    fedexservicecode: number
    freeifordertotalisoveramount: number
    handlingaspercentageoftotal: number
    handlingbyweightamount: number
    handlingbyweightperquantity: number
    handlingbyweightperunit: number
    handlingcost: string
    handlingflatrateamount: number
    handlingperitemamount: number
    handlingtablechargeby: number
    handlingtableuom: number
    handlingtaxcode: number
    hasmaximumshippingcost: boolean
    hasminimumshippingcost: boolean
    integratedlabelsarrangement: string
    integrationservicecode: number
    invt_dispname: string
    isfreeifordertotalisover: boolean
    ishandlingbyweightbracketed: boolean
    ishandlingtaxable: boolean
    isinactive: boolean
    isonline: boolean
    isshippingbyweightbracketed: boolean
    istaxable: boolean
    itemid: string
    itemtype: string
    labelplugin: string
    labelpluginselect: number
    labelreg: string
    labelregselect: number
    labelservice: string
    labelservicegroup: string
    labelservicegroupselect: number
    labelserviceselect: number
    labeltype: string
    maximumshippingcost: number
    minimumshippingcost: number
    needsallfreeshippingitems: boolean
    nsrecord: Record

    underlying netsuite record

    omitpackaging: boolean
    pluginlabelsarrangement: string
    pluginratearrangement: string
    ratingplugin: string
    ratingpluginselect: number
    ratingreg: string
    ratingregselect: number
    ratingservice: string
    ratingservicegroup: string
    ratingservicegroupselect: number
    ratingserviceselect: number
    restrictionarrangement: string
    returnlabelreg: string
    returnlabelregselect: number
    returnlabelservice: string
    returnlabelserviceselect: number
    returnservicecode: number
    returnsintegrated: boolean
    shipitemcurrency: string
    shipperintegrated: boolean
    shippingaspercentageoftotal: number
    shippingbyweightamount: number
    shippingbyweightperquantity: number
    shippingbyweightperunit: number
    shippingcarrier: string
    shippingflatrateamount: number
    shippingperitemamount: number
    shippingtablechargeby: number
    shippingtableuom: number
    shippingtaxcode: number
    site: number
    states: number
    subsidiary: number
    tabtext: string
    taxschedule: number
    taxschedulehandling: number
    upsdiscountrate: number
    upssavername: string
    upsservicecode: number
    uspsdiscountrate: number
    uspsservicecode: number

    Accessors

    Methods

    • Persists this record to the NS database

      Parameters

      • OptionalenableSourcing: boolean
      • OptionalignoreMandatoryFields: boolean

      Returns number