Assembly Unbuild record

Hierarchy

Constructors

  • Loads an existing record with the given internal id

    Example

    // load customer with internal id 123
    const c = new Customer(123)

    Parameters

    • id: NonNullable<string | number>

      record internal id to load

    • Optional isDynamic: boolean

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

    Returns AssemblyUnbuildBase

  • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

    Example

    // 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)

    Parameters

    • rec: NonNullable<ClientCurrentRecord | Record>

      an existing netsuite record

    Returns AssemblyUnbuildBase

  • creates a new record

    Example

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

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

    Parameters

    • Optional unused: Nullable<string | number>

      either null or leave this parameter out entirely

    • Optional isDynamic: boolean

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

    • Optional defaultvalues: object

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

    Returns AssemblyUnbuildBase

Properties

_id: number

Netsuite internal id of this record

billofmaterials: number

Bill of Materials

billofmaterialsrevision: number

Bill of Materials Revision

built: number

Quantity Built

class: number

Class

Components

createddate: Date

Created Date

customform: number

Custom Form

defaultValues?: object
department: number

Department

haslines: boolean

Has Lines

inventorydetail: InventoryDetailBase

Inventory Detail

inventorydetailavail: boolean

Inventory Detail Available

inventorydetailreq: boolean

Inventory Detail Required

item: number

Assembly

lastmodifieddate: Date

Last Modified Date

location: number

Location

locationusesbins: boolean

Location Uses Bins

memo: string

Memo

nsrecord: Record

underlying netsuite record

postingperiod: number

Posting Period

quantity: number

Quantity to Unbuild

revision: number

Revision

revisionmemo: string

Revision Memo

subsidiary: number

Subsidiary

total: number

Projected Value

trandate: Date

Date

tranid: string

Reference #

units: number

Units

Accessors

  • get id(): number
  • Returns number

Methods

  • Persists this record to the NS database

    Returns

    Parameters

    • Optional enableSourcing: boolean
    • Optional ignoreMandatoryFields: boolean

    Returns number

  • Record type

    Returns Type

Generated using TypeDoc