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

    Estimate (Quote)

    Hierarchy (View Summary)

    Index

    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 EstimateBase

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

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

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

    althandlingcost: string | number
    altsalestotal: string | number
    altshippingcost: string | number
    balance: string | number
    billaddresslist: number
    billingaddress: AddressBase
    class: number
    couponcode: number
    createddate: Date
    createdfrom: number
    currency: number
    currencyname: string
    currencysymbol: string
    customform: number
    defaultValues?: object
    deletionreason: number

    This field exists only if 'Use Deletion Reason' feature is enabled on the account

    deletionreasonmemo: string

    This field exists only if 'Use Deletion Reason' feature is enabled on the account

    department: number
    discountitem: number
    discountrate: string | number
    discounttotal: string | number
    duedate: Date
    email: string
    enddate: Date
    entity: number
    entitynexus: number
    entitystatus: number
    externalid: string
    forecasttype: number
    istaxable: boolean
    job: number
    lastmodifieddate: Date
    leadsource: number
    location: number
    memo: string
    message: string
    messagesel: number
    nsrecord: Record

    underlying netsuite record

    opportunity: number
    orderstatus: string | number
    otherrefnum: string
    partner: number
    postingperiod: number
    probability: string | number
    promocode: number
    salesgroup: number
    salesrep: number
    shipdate: Date
    shipmethod: number
    shippingaddress: AddressBase
    shippingtaxcode: number
    status: string

    Note unlike other identifiers in NetSuite, this one is a string (e.g. 'Partially Fulfilled')

    statusRef: string

    Note unlike other references in NetSuite, this one is a set of undocumented string keys (e.g. 'partiallyFulfilled') The possible statusref values differ for each transaction type

    subsidiary: number
    title: string
    tobeemailed: boolean
    tobefaxed: boolean
    tobeprinted: boolean
    total: string | number
    totalcostestimate: string | number
    trandate: Date
    tranid: string
    visibletocustomer: boolean

    Accessors

    Methods

    • locates line on the 'apply' sublist that corresponds to the passed related record internal id expose this method in derived classes that need dynamic access to the apply sublist returns undefined

      Parameters

      • docId: number

      Returns null | { amount: number; apply: boolean; line: number }

      • dynamic access to the apply sublist should generally work using normal collection oriented means
    • Persists this record to the NS database

      Parameters

      • OptionalenableSourcing: boolean
      • OptionalignoreMandatoryFields: boolean

      Returns number