Project (job) base type

Hierarchy (view full)

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 ProjectBase

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

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

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

accountnumber: string
actualtime: string
allowallresourcesfortasks: boolean
allowexpenses: boolean
allowtime: boolean
applyprojectexpensetypetoall: boolean
autoname: boolean
bbudgetshowcalculatedlines: boolean
bbudgetusecalculatedvalues: boolean
billingschedule: number
calculatedenddate: Date
calculatedenddatebaseline: Date
category: number
cbudgetshowcalculatedlines: boolean
cbudgetusecalculatedvalues: boolean
comments: string
companyname: string
contact: number
currency: number
customform: number
datecreated: Date
defaultValues?: object
enddate: Date
entityid: string
entitystatus: number
estimatedcost: number
estimatedgrossprofit: number
estimatedgrossprofitpercent: string
estimatedlaborcost: number
estimatedlaborcostbaseline: number
estimatedlaborrevenue: number
estimatedrevenue: number
estimatedtime: string
estimatedtimeoverride: string
estimatedtimeoverridebaseline: string
estimaterevrectemplate: number
externalid: string
fxrate: string
includecrmtasksintotals: boolean
isbasecurrency: boolean
isexempttime: boolean
isinactive: boolean
isjob: boolean
isproductivetime: boolean
isutilizedtime: boolean
jobbillingtype: number
jobitem: number
jobprice: number
jobtype: number
language: number
lastbaselinedate: Date
lastmodifieddate: Date
limittimetoassignees: boolean
materializetime: boolean
nsrecord: Record

underlying netsuite record

otherrelationships: number
parent: number
percentcomplete: string
percentcompleteoverride: Sublist<PercentCompleteOverrideSublist>
percenttimecomplete: string
projectedenddate: Date
projectedenddatebaseline: Date
projectexpensetype: number
stage: string
startdate: Date
startdatebaseline: Date
subsidiary: number
timeapproval: number
timeremaining: number

Accessors

  • get id(): number
  • Returns number

Methods

  • Returns NetSuite field metadata. Useful for doing things like disabling a field on the form programmatically.

    Parameters

    Returns Field

  • Persists this record to the NS database

    Parameters

    • OptionalenableSourcing: boolean
    • OptionalignoreMandatoryFields: boolean

    Returns number

  • The netsuite record type (constant string) - this is declared here and overridden in derived classes

    Returns Type